From ffd2d8f8a4d44da6c214aa3351a5caa78fb35cf7 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Wed, 1 Dec 2021 13:18:31 +0100 Subject: [PATCH] nxdt_host.py: small fixes. --- host/nxdt_host.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/nxdt_host.py b/host/nxdt_host.py index f5e990e..e745221 100644 --- a/host/nxdt_host.py +++ b/host/nxdt_host.py @@ -927,7 +927,7 @@ def usbCommandHandler(): (cmd_id == USB_CMD_SEND_FILE_PROPERTIES and cmd_block_size != USB_CMD_BLOCK_SIZE_SEND_FILE_PROPERTIES) or \ (cmd_id == USB_CMD_SEND_NSP_HEADER and not cmd_block_size): g_logger.error('Invalid command block size for command ID %02X! (0x%X).\n' % (cmd_id, cmd_block_size)) - usbSendStatus(USB_STATUS_MALFORMED_COMMAND) + usbSendStatus(USB_STATUS_MALFORMED_CMD) continue # Run command handler function. @@ -1038,7 +1038,7 @@ def uiInitialize(): tlb_fp.close() del_tlb = True - g_tlb = cc.GetModule('TASKBAR_LIB_PATH') + g_tlb = cc.GetModule(TASKBAR_LIB_PATH) g_taskbar = cc.CreateObject('{56FDF344-FD6D-11D0-958A-006097C9A090}', interface=g_tlb.ITaskbarList3) g_taskbar.HrInit()