Browse Source

add nullptr check

teensy4-core
Frank 6 years ago
parent
commit
fc0677b9a6
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      teensy4/Print.cpp

+ 1
- 0
teensy4/Print.cpp View File

@@ -41,6 +41,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