Skip to content

Commit e42e963

Browse files
committed
🚧 WIP, digitalio - Attach dio remove to b2d cb
1 parent 4a2ccac commit e42e963

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Wippersnapper_V2.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ bool cbDecodeBrokerToDevice(pb_istream_t *stream, const pb_field_t *field,
346346
break;
347347
case wippersnapper_signal_BrokerToDevice_digitalio_remove_tag:
348348
WS_DEBUG_PRINTLN("-> DigitalIO Remove Message Type");
349+
if (!WsV2.digital_io_controller->RemoveDigitalIOPin(stream)) {
350+
WS_DEBUG_PRINTLN("ERROR: Unable to remove digitalio pin!");
351+
return false;
352+
}
349353
break;
350354
case wippersnapper_signal_BrokerToDevice_digitalio_write_tag:
351355
WS_DEBUG_PRINTLN("-> DigitalIO Write Message Type");

0 commit comments

Comments
 (0)