Skip to content

Serial.print(0ULL) gives empty output #178

Closed
@warmonkey

Description

@warmonkey

Test case:
Serial.print(0ULL);
Expected output: 0
Actual output: nothing

Quick fix:

// FAST IMPLEMENTATION FOR ULL
size_t Print::printULLNumber(unsigned long long n64, uint8_t base)
{
  //handle special case
  if (n64 == 0) {
    write('0');
    return 1;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions