From acfcba6fa669c99c470433ef9556fde2afd80bb5 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Mon, 12 Oct 2015 10:52:51 +0200 Subject: [PATCH] Replace deprecated byte variable with uint8_t --- PS3USB.cpp | 2 +- max_LCD.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PS3USB.cpp b/PS3USB.cpp index c3217538..fbbf7844 100755 --- a/PS3USB.cpp +++ b/PS3USB.cpp @@ -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 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]; } } diff --git a/max_LCD.cpp b/max_LCD.cpp index f0c64666..7a9b1707 100644 --- a/max_LCD.cpp +++ b/max_LCD.cpp @@ -37,7 +37,7 @@ e-mail : support@circuitsathome.com 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) { lcdPins = 0;