File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 6868 - source-path: ./
6969 - name: Arduino_USBHostMbed5
7070 - name: Arduino_POSIXStorage
71+ - name: Arduino_RS485
7172 # Additional library dependencies can be listed here.
7273 # See: https://github.com/arduino/compile-sketches#libraries
7374 sketch-paths : |
Original file line number Diff line number Diff line change 99#if !defined(HAS_SERIAL) && defined(HAS_RS485)
1010#include < ArduinoRS485.h>
1111
12- static void beginRS485 (const int baudrate){
12+ [[gnu::unused]] static void beginRS485 (const int baudrate){
1313 const auto bitduration { 1 .f / baudrate };
1414 const auto wordlen { 9 .6f }; // OR 10.0f depending on the channel configuration
1515 const auto preDelayBR { bitduration * wordlen * 3 .5f * 1e6 };
@@ -20,7 +20,7 @@ static void beginRS485(const int baudrate){
2020 RS485.noReceive ();
2121}
2222
23- void debugPrintRS485 (String s){
23+ [[gnu::unused]] void debugPrintRS485 (String s){
2424 static bool rs485Initialized = false ;
2525 if (!rs485Initialized) {
2626 beginRS485 (115200 );
@@ -34,7 +34,7 @@ void debugPrintRS485(String s){
3434
3535#endif
3636
37- static void debugPrint (String s){
37+ [[gnu::unused]] static void debugPrint (String s){
3838 #if defined(ARDUINO_UNIFIED_STORAGE_DEBUG)
3939 #if defined(HAS_SERIAL)
4040 Serial.println (s);
You can’t perform that action at this time.
0 commit comments