BREAKING: Add Print::availableForWrite method by earlephilhower · Pull Request #7658 · esp8266/Arduino

@earlephilhower

Adds an availableForWrite() method to the Print class, matching current
ArduinoCore-API commit 398e70f188e2b861c10d9ffe5e2bfcb6a4a4f489 .

Hook availableForWrite into the SDFS filesystem (other FSes don't have
this capability built-in).

Fixes esp8266#7650

@earlephilhower

@earlephilhower

@earlephilhower earlephilhower changed the title Add Print::availableForWrite method BREAKING: Add Print::availableForWrite method

Oct 17, 2020
This is evidently a breaking change due to the type difference.
Arduino's `availableForWrite` returns an `int`, while the
(multiply-implemented, non-virtual) core `availableForWrite` returned
`size_t`.

@earlephilhower

d-a-v

@d-a-v

@d-a-v d-a-v mentioned this pull request

Nov 6, 2020