Skip to content

Commit 923feca

Browse files
authored
Merge pull request arduino#288 from mast-eu/compilerWarning2
Use correct datatype for return value of FspTimer::get_available_timer()
2 parents 68ea03f + 0195ac3 commit 923feca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Arduino_LED_Matrix/src/Arduino_LED_Matrix.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class ArduinoLEDMatrix
172172
bool begin() {
173173
bool rv = true;
174174
uint8_t type;
175-
uint8_t ch = FspTimer::get_available_timer(type);
175+
int8_t ch = FspTimer::get_available_timer(type);
176176
if(ch == -1) {
177177
return false;
178178
}

0 commit comments

Comments
 (0)