Skip to content

Commit 79bbd80

Browse files
added RS485 dependency in gituhub actions, fixed unused methods from Utils.h
1 parent 638a5ba commit 79bbd80

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/compile-examples.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
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: |

src/Utils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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);

0 commit comments

Comments
 (0)