This website works better with JavaScript.
Home
Explore
Help
Sign In
visus
/
teensy-cores
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
add nullptr check
main
Frank
5 years ago
parent
e23d64999b
commit
1badfa2ccd
No account linked to committer's email address
1 changed files
with
1 additions
and
0 deletions
Split View
Show Diff Stats
+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;
Write
Preview
Loading…
Cancel
Save