fix compilation when using stdout protocol

This commit is contained in:
Samuel Sadok
2018-05-14 16:25:31 -07:00
parent 62a599bf6e
commit 0e32df329f
5 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -182,10 +182,10 @@ int _write(int file, const char* data, int len);
// @brief This is what printf calls internally
int _write(int file, const char* data, int len) {
#ifdef USB_PROTOCOL_STDOUT
usb_stream_output.process_bytes((const uint8_t *)data, len);
usb_stream_output_ptr->process_bytes((const uint8_t *)data, len);
#endif
#ifdef UART_PROTOCOL_STDOUT
uart4_stream_output.process_bytes((const uint8_t *)data, len);
uart4_stream_output_ptr->process_bytes((const uint8_t *)data, len);
#endif
return len;
}