Replace deprecated byte variable with uint8_t

This commit is contained in:
Kristian Sloth Lauszus 2015-10-12 10:52:51 +02:00
parent 523e66e827
commit acfcba6fa6
2 changed files with 2 additions and 2 deletions

View file

@ -555,7 +555,7 @@ void PS3USB::getMoveCalibration(uint8_t *data) {
// bmRequest = Device to host (0x80) | Class (0x20) | Interface (0x01) = 0xA1, bRequest = Get Report (0x01), Report ID (0x10), Report Type (Feature 0x03), interface (0x00), datalength, datalength, data // bmRequest = Device to host (0x80) | Class (0x20) | Interface (0x01) = 0xA1, bRequest = Get Report (0x01), Report ID (0x10), Report Type (Feature 0x03), interface (0x00), datalength, datalength, data
pUsb->ctrlReq(bAddress, epInfo[PS3_CONTROL_PIPE].epAddr, bmREQ_HID_IN, HID_REQUEST_GET_REPORT, 0x10, 0x03, 0x00, 49, 49, buf, NULL); pUsb->ctrlReq(bAddress, epInfo[PS3_CONTROL_PIPE].epAddr, bmREQ_HID_IN, HID_REQUEST_GET_REPORT, 0x10, 0x03, 0x00, 49, 49, buf, NULL);
for(byte j = 0; j < 49; j++) for(uint8_t j = 0; j < 49; j++)
data[49 * i + j] = buf[j]; data[49 * i + j] = buf[j];
} }
} }

View file

@ -37,7 +37,7 @@ e-mail : support@circuitsathome.com
sendbyte(a); \ sendbyte(a); \
} }
static byte lcdPins; //copy of LCD pins static uint8_t lcdPins; //copy of LCD pins
Max_LCD::Max_LCD(USB *pusb) : pUsb(pusb) { Max_LCD::Max_LCD(USB *pusb) : pUsb(pusb) {
lcdPins = 0; lcdPins = 0;