Skip to content

Commit 88985bb

Browse files
committed
Fix examples
1 parent ada849f commit 88985bb

10 files changed

Lines changed: 14 additions & 0 deletions

File tree

examples/Inkplate10/Diagnostics/Inkplate10_Peripheral_Mode/InkplatePeripheralMode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,8 @@ int PeripheralMode::charToInt(char a)
15661566
return a - '0';
15671567
if (a >= 'A' && a <= 'F')
15681568
return ((a - 'A') + 10);
1569+
1570+
return -1;
15691571
}
15701572

15711573
void PeripheralMode::checkArguments(int *_noOfArgs, int _maxArg, int _repeat)

examples/Inkplate2/Diagnostics/Inkplate2_Peripheral_Mode/InkplatePeripheralMode.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@ int PeripheralMode::charToInt(char a)
12181218
return a - '0';
12191219
if (a >= 'A' && a <= 'F')
12201220
return ((a - 'A') + 10);
1221+
return -1;
12211222
}
12221223

12231224
void PeripheralMode::checkArguments(int *_noOfArgs, int _maxArg, int _repeat)

examples/Inkplate4TEMPERA/Diagnostics/Inkplate4TEMPERA_Peripheral_Mode/InkplatePeripheralMode.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,7 @@ int PeripheralMode::charToInt(char a)
15661566
return a - '0';
15671567
if (a >= 'A' && a <= 'F')
15681568
return ((a - 'A') + 10);
1569+
return -1;
15691570
}
15701571

15711572
void PeripheralMode::checkArguments(int *_noOfArgs, int _maxArg, int _repeat)

examples/Inkplate5/Diagnostics/Inkplate5_Peripheral_Mode/InkplatePeripheralMode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,8 @@ int PeripheralMode::charToInt(char a)
15661566
return a - '0';
15671567
if (a >= 'A' && a <= 'F')
15681568
return ((a - 'A') + 10);
1569+
1570+
return -1;
15691571
}
15701572

15711573
void PeripheralMode::checkArguments(int *_noOfArgs, int _maxArg, int _repeat)

examples/Inkplate5V2/Diagnostics/Inkplate5V2_Peripheral_Mode/InkplatePeripheralMode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,8 @@ int PeripheralMode::charToInt(char a)
15661566
return a - '0';
15671567
if (a >= 'A' && a <= 'F')
15681568
return ((a - 'A') + 10);
1569+
1570+
return -1;
15691571
}
15701572

15711573
void PeripheralMode::checkArguments(int *_noOfArgs, int _maxArg, int _repeat)

examples/Inkplate6/Advanced/Other/Inkplate6_Fastest_Display_Refreshes.ino/Inkplate6_Fastest_Display_Refreshes.ino renamed to examples/Inkplate6/Advanced/Other/Inkplate6_Fastest_Display_Refreshes/Inkplate6_Fastest_Display_Refreshes.ino

File renamed without changes.

examples/Inkplate6/Diagnostics/Inkplate6_Peripheral_Mode/InkplatePeripheralMode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,8 @@ int PeripheralMode::charToInt(char a)
15661566
return a - '0';
15671567
if (a >= 'A' && a <= 'F')
15681568
return ((a - 'A') + 10);
1569+
1570+
return -1;
15691571
}
15701572

15711573
void PeripheralMode::checkArguments(int *_noOfArgs, int _maxArg, int _repeat)

examples/Inkplate6COLOR/Diagnostics/Inkplate6COLOR_Peripheral_Mode/InkplatePeripheralMode.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,6 +1541,7 @@ int PeripheralMode::charToInt(char a)
15411541
return a - '0';
15421542
if (a >= 'A' && a <= 'F')
15431543
return ((a - 'A') + 10);
1544+
return -1;
15441545
}
15451546

15461547
void PeripheralMode::checkArguments(int *_noOfArgs, int _maxArg, int _repeat)

examples/Inkplate6FLICK/Diagnostics/Inkplate6FLICK_Peripheral_Mode/InkplatePeripheralMode.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,7 @@ int PeripheralMode::charToInt(char a)
15421542
return a - '0';
15431543
if (a >= 'A' && a <= 'F')
15441544
return ((a - 'A') + 10);
1545+
return -1;
15451546
}
15461547

15471548
void PeripheralMode::checkArguments(int *_noOfArgs, int _maxArg, int _repeat)

examples/Inkplate6PLUS/Diagnostics/Inkplate6PLUS_Peripheral_Mode/InkplatePeripheralMode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,8 @@ int PeripheralMode::charToInt(char a)
15421542
return a - '0';
15431543
if (a >= 'A' && a <= 'F')
15441544
return ((a - 'A') + 10);
1545+
1546+
return -1;
15451547
}
15461548

15471549
void PeripheralMode::checkArguments(int *_noOfArgs, int _maxArg, int _repeat)

0 commit comments

Comments
 (0)