Browse Source

add nullptr check

main
Frank 5 years ago
parent
commit
1badfa2ccd
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      teensy3/Print.cpp

+ 1
- 0
teensy3/Print.cpp View File

@@ -39,6 +39,7 @@

size_t Print::write(const uint8_t *buffer, size_t size)
{
if (buffer == nullptr) return 0;
size_t count = 0;
while (size--) count += write(*buffer++);
return count;

Loading…
Cancel
Save