We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5c727e commit a81294fCopy full SHA for a81294f
cores/arduino/Print.cpp
@@ -208,7 +208,7 @@ size_t Print::printNumber(unsigned long n, uint8_t base)
208
}
209
210
// prevent crash if called with base == 1
211
- if (base < 2) base = 10;
+ if (base < 2) return printNumber(n, 10);
212
213
// use -D ARDUINO_PRINT_NUMBER_GENERIC_ONLY when compiling to get only the generic version
214
#ifndef ARDUINO_PRINT_NUMBER_GENERIC_ONLY
0 commit comments