Skip to content

Commit d47842b

Browse files
fixup! defining a wrapper connection handler with the objective of being generic
1 parent 113907e commit d47842b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/GenericConnectionHandler.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ NetworkConnectionState GenericConnectionHandler::update_handleDisconnected() {
9292
return _ch != nullptr ? _ch->update_handleDisconnected() : NetworkConnectionState::INIT;
9393
}
9494

95-
#if not defined(BOARD_HAS_LORA)
95+
#if not (defined(BOARD_HAS_LORA) or defined(BOARD_HAS_NOTECARD))
9696
unsigned long GenericConnectionHandler::getTime() { // FIXME _ch may be nullptr
9797
return _ch->getTime();
9898
}
@@ -104,4 +104,5 @@ Client & GenericConnectionHandler::getClient() { // FIXME _ch may be nullptr
104104
UDP & GenericConnectionHandler::getUDP() { // FIXME _ch may be nullptr
105105
return _ch->getUDP();
106106
}
107-
#endif
107+
108+
#endif // not (defined(BOARD_HAS_LORA) or defined(BOARD_HAS_NOTECARD))

0 commit comments

Comments
 (0)