From 4137f919a274d26eac9c22651de852cde588d8fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sat, 14 Jan 2017 00:35:01 +0100 Subject: [PATCH] Clean up the case BRIDGE_COMMAND_SET_TEST_LED clause of the bridge protocol handler. --- left/src/bridge_protocol_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/left/src/bridge_protocol_handler.c b/left/src/bridge_protocol_handler.c index d002946..bf4e7b0 100644 --- a/left/src/bridge_protocol_handler.c +++ b/left/src/bridge_protocol_handler.c @@ -33,9 +33,9 @@ void BridgeProtocolHandler() memcpy(BridgeTxBuffer, keyMatrix.keyStates, BridgeTxSize); break; case BRIDGE_COMMAND_SET_TEST_LED: - TEST_LED_OFF(); BridgeTxSize = 0; - TEST_LED_SET(BridgeRxBuffer[1]); + bool isLedOn = BridgeRxBuffer[1]; + TEST_LED_SET(isLedOn); break; case BRIDGE_COMMAND_SET_LED_PWM: BridgeTxSize = 0;