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:
parent
6cfe000ac9
commit
71be6b19d4
|
|
@ -19,7 +19,7 @@ void MMU2Serial::flush() {
|
||||||
// @@TODO - clear the output buffer
|
// @@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--){
|
while(size--){
|
||||||
fputc(*buffer, uart2io);
|
fputc(*buffer, uart2io);
|
||||||
++buffer;
|
++buffer;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ public:
|
||||||
void close();
|
void close();
|
||||||
int read();
|
int read();
|
||||||
void flush();
|
void flush();
|
||||||
size_t write(const uint8_t *buffer, size_t size);
|
void write(const uint8_t *buffer, size_t size);
|
||||||
};
|
};
|
||||||
|
|
||||||
extern MMU2Serial mmu2Serial;
|
extern MMU2Serial mmu2Serial;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue