From b80e1cbef1d7740452a49cbf4364b212254714eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sat, 18 Mar 2017 21:18:36 +0100 Subject: [PATCH] The LED driver doesn't get read, so remove related code. --- right/src/usb_protocol_handler.c | 8 -------- right/src/usb_protocol_handler.h | 1 - 2 files changed, 9 deletions(-) diff --git a/right/src/usb_protocol_handler.c b/right/src/usb_protocol_handler.c index f153317..2379493 100644 --- a/right/src/usb_protocol_handler.c +++ b/right/src/usb_protocol_handler.c @@ -61,9 +61,6 @@ void usbProtocolHandler() case USB_COMMAND_WRITE_LED_DRIVER: //writeLedDriver(); break; - case USB_COMMAND_READ_LED_DRIVER: - //readLedDriver(); - break; case USB_COMMAND_WRITE_EEPROM: writeEeprom(); break; @@ -141,11 +138,6 @@ void writeLedDriver() I2cWrite(I2C_MAIN_BUS_BASEADDR, i2cAddress, GenericHidInBuffer+3, i2cPayloadSize); } -void readLedDriver() -{ - -} - void writeEeprom() { uint8_t i2cPayloadSize = GenericHidInBuffer[1]; diff --git a/right/src/usb_protocol_handler.h b/right/src/usb_protocol_handler.h index 5a8423b..83b432d 100644 --- a/right/src/usb_protocol_handler.h +++ b/right/src/usb_protocol_handler.h @@ -20,7 +20,6 @@ #define USB_COMMAND_WRITE_LED_DRIVER 3 #define WRITE_LED_DRIVER_RESPONSE_INVALID_ADDRESS 1 #define WRITE_LED_DRIVER_RESPONSE_INVALID_PAYLOAD_SIZE 2 - #define USB_COMMAND_READ_LED_DRIVER 4 #define USB_COMMAND_WRITE_EEPROM 5 #define WRITE_EEPROM_RESPONSE_INVALID_PAYLOAD_SIZE 1 #define USB_COMMAND_READ_EEPROM 6