From 0ebb9902dfcedddabbb728b3073227d84d65effb Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Thu, 27 Oct 2022 11:57:03 +0200 Subject: [PATCH] fix finding protocol implementation --- gateway/src/gateway.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: