From cb53ad131ab7b16396c69549544c4ae9fe03f943 Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Sat, 27 Apr 2024 13:31:51 +0200 Subject: [PATCH] remove unused blink --- gateway/include/pro-mini.h | 6 ------ gateway/src/gateway.cpp | 7 ------- 2 files changed, 13 deletions(-) diff --git a/gateway/include/pro-mini.h b/gateway/include/pro-mini.h index 6da5bb9..aacb484 100644 --- a/gateway/include/pro-mini.h +++ b/gateway/include/pro-mini.h @@ -12,12 +12,6 @@ namespace Board { pinMode(RESET_PIN, OUTPUT); } - void blink() { - digitalWrite(LED_BUILTIN, HIGH); - delay(200); - digitalWrite(LED_BUILTIN, LOW); - } - void readCommand() { if (serialReader.readLine(Serial) > 0) { char* cmd = serialReader.getBuffer(); diff --git a/gateway/src/gateway.cpp b/gateway/src/gateway.cpp index dd08f5a..b728d12 100644 --- a/gateway/src/gateway.cpp +++ b/gateway/src/gateway.cpp @@ -16,7 +16,6 @@ void runJsonCommand(char* cmd); void setup() { - pinMode(LED_BUILTIN, OUTPUT); Serial.begin(9600); mySwitch.enableReceive(digitalPinToInterrupt(RECEIVE_PIN)); @@ -29,12 +28,6 @@ void setup() { delay(1000); } -void blink() { - digitalWrite(LED_BUILTIN, HIGH); - delay(200); - digitalWrite(LED_BUILTIN, LOW); -} - Protocol* findProtocol(unsigned int protocol) { switch (protocol) { case 1: