We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38b8db1 commit f02a2c1Copy full SHA for f02a2c1
mesh_led_control_example.cpp
@@ -110,14 +110,22 @@ static void update_state(uint8_t state) {
110
tr_debug("Turning led on\n");
111
led_1 = 0;
112
button_status=1;
113
- output = 0;
+ if (MBED_CONF_APP_RELAY_CONTROL != NC) {
114
+ output = 0;
115
+ } else {
116
+ printf("Pins not configured. Skipping the RELAY control.\n");
117
}
118
+ }
119
else {
120
tr_debug("Turning led off\n");
121
led_1 = 1;
122
button_status=0;
- output = 1;
- }
123
124
+ output = 1;
125
126
127
128
129
130
131
static void handle_message(char* msg) {
0 commit comments