Skip to content

Commit 92a05d2

Browse files
committed
USB libraries: replace non-portable u8 with uint8_t
1 parent ca7d22e commit 92a05d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libraries/Keyboard/src/Keyboard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//================================================================================
2828
// Keyboard
2929

30-
static const u8 _hidReportDescriptor[] PROGMEM = {
30+
static const uint8_t _hidReportDescriptor[] PROGMEM = {
3131

3232
// Keyboard
3333
0x05, 0x01, // USAGE_PAGE (Generic Desktop) // 47

libraries/Mouse/src/Mouse.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#if defined(_USING_HID)
2525

26-
static const u8 _hidReportDescriptor[] PROGMEM = {
26+
static const uint8_t _hidReportDescriptor[] PROGMEM = {
2727

2828
// Mouse
2929
0x05, 0x01, // USAGE_PAGE (Generic Desktop) // 54
@@ -88,7 +88,7 @@ void Mouse_::click(uint8_t b)
8888

8989
void Mouse_::move(signed char x, signed char y, signed char wheel)
9090
{
91-
u8 m[4];
91+
uint8_t m[4];
9292
m[0] = _buttons;
9393
m[1] = x;
9494
m[2] = y;

0 commit comments

Comments
 (0)