cleanup: Remove return value from MMU2Serial::write()

Removes a missing return warning.

Looks like we don't handle overflow at the moment and in all surrounding
code, so let's remove the return value for now.
This commit is contained in:
Yuri D'Elia 2022-09-30 12:45:59 +02:00
parent 6cfe000ac9
commit 71be6b19d4
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ void MMU2Serial::flush() {
// @@TODO - clear the output buffer
}
size_t MMU2Serial::write(const uint8_t *buffer, size_t size) {
void MMU2Serial::write(const uint8_t *buffer, size_t size) {
while(size--){
fputc(*buffer, uart2io);
++buffer;

View File

@ -12,7 +12,7 @@ public:
void close();
int read();
void flush();
size_t write(const uint8_t *buffer, size_t size);
void write(const uint8_t *buffer, size_t size);
};
extern MMU2Serial mmu2Serial;