diff --git a/gateway/src/gateway.cpp b/gateway/src/gateway.cpp index 56ba21e..c77a1b8 100644 --- a/gateway/src/gateway.cpp +++ b/gateway/src/gateway.cpp @@ -28,7 +28,7 @@ void setup() { } Protocol findProtocol(unsigned int protocol) { - switch (mySwitch.getReceivedProtocol()) { + switch (protocol) { case 1: return protocol_1; case 2: