Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9333e7f

Browse files
committed
bugfix: print(0ULL) output nothing
1 parent049a8c8 commit9333e7f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎cores/arduino/Print.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,12 @@ size_t Print::printULLNumber(unsigned long long n64, uint8_t base)
375375
uint8_t i =0;
376376
uint8_t innerLoops =0;
377377

378+
// Special case workaround https://github.com/arduino/ArduinoCore-API/issues/178
379+
if (n64 ==0) {
380+
write('0');
381+
return1;
382+
}
383+
378384
// prevent crash if called with base == 1
379385
if (base <2) {
380386
base =10;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp