From 1abc699b07f5dcbd7063ce10a7db31b657d47b39 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Mon, 11 Apr 2022 16:33:27 +0200 Subject: [PATCH] Make code more readable --- .../control/Firmware/lib/LightController/LightController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/control/Firmware/lib/LightController/LightController.cpp b/modules/control/Firmware/lib/LightController/LightController.cpp index ae96010..9336386 100644 --- a/modules/control/Firmware/lib/LightController/LightController.cpp +++ b/modules/control/Firmware/lib/LightController/LightController.cpp @@ -86,12 +86,12 @@ void LightController::parseRelativeState(const char data[], int index, int steps void LightController::setAbsoluteState(const char data[], int index) { - if (!strcmp(data, "off")) + if (strcmp(data, "off") == 0) { bjtState[index] = 0; } - if (!strcmp(data, "on")) + if (strcmp(data, "on") == 0) { bjtState[index] = 255; }