firmware_common: Added command ID for reading FW log entries

This commit is contained in:
Jon Szymaniak 2015-12-06 22:56:55 -05:00
commit ff6f2b1cf1
2 changed files with 5 additions and 0 deletions

View file

@ -44,6 +44,7 @@
#define BLADE_USB_CMD_REFRESH_CAL_CACHE 112
#define BLADE_USB_CMD_SET_LOOPBACK 113
#define BLADE_USB_CMD_GET_LOOPBACK 114
#define BLADE_USB_CMD_READ_LOG_ENTRY 115
/* String descriptor indices */
#define BLADE_USB_STR_INDEX_MFR 1 /* Manufacturer */

View file

@ -607,6 +607,10 @@ CyBool_t NuandHandleVendorRequest(
CyU3PDeviceReset(CyFalse);
break;
case BLADE_USB_CMD_READ_LOG_ENTRY:
CyU3PUsbSendRetCode(logger_read());
break;
default:
isHandled = CyFalse;
}