Skip to content

Commit

Permalink
Update corefiles
Browse files Browse the repository at this point in the history
Merge commit '547eabccabb65ec1fbdd7affd5558c60a0927a8f'
  • Loading branch information
MCUdude committed May 5, 2020
2 parents f1ca72e + 547eabc commit 4ba1328
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion avr/cores/MCUdude_corefiles/HardwareSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class HardwareSerial : public Stream
virtual int available(void);
virtual int peek(void);
virtual int read(void);
int availableForWrite(void);
virtual int availableForWrite(void);
virtual void flush(void);
virtual size_t write(uint8_t);
inline size_t write(unsigned long n) { return write((uint8_t)n); }
Expand Down
8 changes: 7 additions & 1 deletion avr/cores/MCUdude_corefiles/Print.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ class Print
size_t write(const char *buffer, size_t size) {
return write((const uint8_t *)buffer, size);
}


// default to zero, meaning "a single write may block"
// should be overriden by subclasses with buffering
virtual int availableForWrite() { return 0; }

virtual void flush() { /* Empty implementation for backward compatibility */ }

size_t print(const __FlashStringHelper *);
size_t print(const String &);
size_t print(const char[]);
Expand Down
2 changes: 1 addition & 1 deletion avr/cores/MCUdude_corefiles/USBAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Serial_ : public Stream
virtual int available(void);
virtual int peek(void);
virtual int read(void);
int availableForWrite(void);
virtual int availableForWrite(void);
virtual void flush(void);
virtual size_t write(uint8_t);
virtual size_t write(const uint8_t*, size_t);
Expand Down

0 comments on commit 4ba1328

Please sign in to comment.