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 68
68
- source-path: ./
69
69
- name: Arduino_USBHostMbed5
70
70
- name: Arduino_POSIXStorage
71
+ - name: Arduino_RS485
71
72
# Additional library dependencies can be listed here.
72
73
# See: https://github.com/arduino/compile-sketches#libraries
73
74
sketch-paths : |
Original file line number Diff line number Diff line change 9
9
#if !defined(HAS_SERIAL) && defined(HAS_RS485)
10
10
#include < ArduinoRS485.h>
11
11
12
- static void beginRS485 (const int baudrate){
12
+ [[gnu::unused]] static void beginRS485 (const int baudrate){
13
13
const auto bitduration { 1 .f / baudrate };
14
14
const auto wordlen { 9 .6f }; // OR 10.0f depending on the channel configuration
15
15
const auto preDelayBR { bitduration * wordlen * 3 .5f * 1e6 };
@@ -20,7 +20,7 @@ static void beginRS485(const int baudrate){
20
20
RS485.noReceive ();
21
21
}
22
22
23
- void debugPrintRS485 (String s){
23
+ [[gnu::unused]] void debugPrintRS485 (String s){
24
24
static bool rs485Initialized = false ;
25
25
if (!rs485Initialized) {
26
26
beginRS485 (115200 );
@@ -34,7 +34,7 @@ void debugPrintRS485(String s){
34
34
35
35
#endif
36
36
37
- static void debugPrint (String s){
37
+ [[gnu::unused]] static void debugPrint (String s){
38
38
#if defined(ARDUINO_UNIFIED_STORAGE_DEBUG)
39
39
#if defined(HAS_SERIAL)
40
40
Serial.println (s);
You can’t perform that action at this time.
0 commit comments