-
Notifications
You must be signed in to change notification settings - Fork 165
Made it possible to print to any HardwareSerial object pointer #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Made it possible to print to any HardwareSerial object pointer #148
Conversation
Memory usage change @ e5a92b2
Click for full report table
Click for full report CSV
|
Dear @per1234 Do you have any idea why the tests failed on the Leonardo board? Cheers |
@dzalf have you looked at the logs:
You can reproduce it locally by installing the version of the library from this PR, selecting Tools > Board > Arduino AVR Boards > Arduino Leonardo from the Arduino IDE menus, and then compiling a sketch sketch that uses the SD library. Note this: https://github.com/arduino/ArduinoCore-avr/blob/1.8.6/cores/arduino/USBAPI.h#L154 extern Serial_ Serial; |
Dear @per1234 Apologies, I had not seen those. It makes sense to me now. I wasn't aware of the extern Serial object declaration on the Leonardo API. Any workaround ideas to integrate this enhancement? |
Memory usage change @ 03b49f0
Click for full report table
Click for full report CSV
|
The library currently prints information from the SD Card like filenames, and file sizes to the Serial port (connected to USB in most cases) by default.
By assigning a pointer to a
HardwareSerial
object it is possible to print such information to any port selected by the user.This becomes relevant when working with chips that have multiple UART ports: e.g. when debugging code on a separate serial port.