Sfoglia il codice sorgente

Fix Serial1.write(0)

teensy4-core
PaulStoffregen 5 anni fa
parent
commit
a4c6f53307
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      teensy4/HardwareSerial.h

+ 5
- 0
teensy4/HardwareSerial.h Vedi File

@@ -189,6 +189,11 @@ public:
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

/*

Loading…
Annulla
Salva