Ver código fonte

Move the flush from Stream to Print

main
PaulStoffregen 7 anos atrás
pai
commit
b01a30b020
2 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -0
      teensy3/Print.h
  2. +0
    -1
      teensy3/Stream.h

+ 1
- 0
teensy3/Print.h Ver arquivo

@@ -53,6 +53,7 @@ class Print
virtual size_t write(uint8_t b) = 0;
size_t write(const char *str) { return write((const uint8_t *)str, strlen(str)); }
virtual size_t write(const uint8_t *buffer, size_t size);
virtual void flush() { }
size_t write(const char *buffer, size_t size) { return write((const uint8_t *)buffer, size); }
size_t print(const String &s);
size_t print(char c) { return write((uint8_t)c); }

+ 0
- 1
teensy3/Stream.h Ver arquivo

@@ -30,7 +30,6 @@ class Stream : public Print
virtual int available() = 0;
virtual int read() = 0;
virtual int peek() = 0;
virtual void flush() = 0;

void setTimeout(unsigned long timeout);
bool find(const char *target);

Carregando…
Cancelar
Salvar