From 92a05d2e2530c59c805418a0586a4b6e31aa8212 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Fri, 17 Jul 2015 12:08:26 +0200 Subject: [PATCH] USB libraries: replace non-portable u8 with uint8_t --- libraries/Keyboard/src/Keyboard.cpp | 2 +- libraries/Mouse/src/Mouse.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/Keyboard/src/Keyboard.cpp b/libraries/Keyboard/src/Keyboard.cpp index 73f469119..6ea365c5e 100644 --- a/libraries/Keyboard/src/Keyboard.cpp +++ b/libraries/Keyboard/src/Keyboard.cpp @@ -27,7 +27,7 @@ //================================================================================ // Keyboard -static const u8 _hidReportDescriptor[] PROGMEM = { +static const uint8_t _hidReportDescriptor[] PROGMEM = { // Keyboard 0x05, 0x01, // USAGE_PAGE (Generic Desktop) // 47 diff --git a/libraries/Mouse/src/Mouse.cpp b/libraries/Mouse/src/Mouse.cpp index a0566811c..234ca6034 100644 --- a/libraries/Mouse/src/Mouse.cpp +++ b/libraries/Mouse/src/Mouse.cpp @@ -23,7 +23,7 @@ #if defined(_USING_HID) -static const u8 _hidReportDescriptor[] PROGMEM = { +static const uint8_t _hidReportDescriptor[] PROGMEM = { // Mouse 0x05, 0x01, // USAGE_PAGE (Generic Desktop) // 54 @@ -88,7 +88,7 @@ void Mouse_::click(uint8_t b) void Mouse_::move(signed char x, signed char y, signed char wheel) { - u8 m[4]; + uint8_t m[4]; m[0] = _buttons; m[1] = x; m[2] = y;