From 43911bb4ae21123e7f34a4d1bf36ae1c0e02f5f6 Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Mon, 18 Jan 2021 20:25:36 +0100 Subject: [PATCH] Add missing breaks --- feedback/firmware/main.c | 1 + poweriface/firmware/main.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/feedback/firmware/main.c b/feedback/firmware/main.c index 50fe70f..809e984 100644 --- a/feedback/firmware/main.c +++ b/feedback/firmware/main.c @@ -77,6 +77,7 @@ static void loop() { if (msg.flags.rtr) { send_status(); } + break; case 0x4f: if (msg.length == 1) { report_change = msg.data[0] ? true : false; diff --git a/poweriface/firmware/main.c b/poweriface/firmware/main.c index 317da88..09c5bb6 100644 --- a/poweriface/firmware/main.c +++ b/poweriface/firmware/main.c @@ -137,6 +137,7 @@ static void loop() { if (msg.flags.rtr) { send_status(); } + break; case 0x21: if (msg.length == 1) { // stop (d0 = 0) or fire relay (d0 = 1..5) @@ -144,6 +145,7 @@ static void loop() { // also send out the current status send_status(); } + break; case 0x4f: if (msg.length == 1) { report_change = msg.data[0] ? true : false;