Skip to content
Permalink
Browse files

Fix Serial1.write(0)

  • Loading branch information...
PaulStoffregen committed Aug 12, 2019
1 parent 934b485 commit a4c6f53307c458d3072644ea2c407b03eb2d91c1
Showing with 5 additions and 0 deletions.
  1. +5 −0 teensy4/HardwareSerial.h
@@ -189,6 +189,11 @@ class HardwareSerial : public Stream
static uint8_t serial_event_handlers_active;

using Print::write;
size_t write(unsigned long n) { return write((uint8_t)n); }
size_t write(long n) { return write((uint8_t)n); }
size_t write(unsigned int n) { return write((uint8_t)n); }
size_t write(int n) { return write((uint8_t)n); }

// Only overwrite some of the virtualWrite functions if we are going to optimize them over Print version

/*

0 comments on commit a4c6f53

Please sign in to comment.
You can’t perform that action at this time.