From 1d3d7f5f869d30270487457cc89c2253de3bdd65 Mon Sep 17 00:00:00 2001 From: PS Date: Thu, 8 Apr 2021 15:42:26 -1000 Subject: [PATCH] Making Motor Debug Commands more verbose --- src/app/ss_blumen_lumen/blumen_lumen.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/ss_blumen_lumen/blumen_lumen.cpp b/src/app/ss_blumen_lumen/blumen_lumen.cpp index be87d78..e2b7035 100644 --- a/src/app/ss_blumen_lumen/blumen_lumen.cpp +++ b/src/app/ss_blumen_lumen/blumen_lumen.cpp @@ -731,25 +731,25 @@ US_CUSTOM_DEBUG_UI(BlumenLumen_DebugUI) { ui_Label(I, Label); - bool IsClosed = PendingPacket.FlowerPositions[MotorIndex] == 1; + bool IsClosed = PendingPacket.FlowerPositions[MotorIndex] == MotorState_Closed; if (ui_ToggleText(I, MakeString("Closed (1)"), IsClosed)) { - PendingPacket.FlowerPositions[MotorIndex] = 1; + PendingPacket.FlowerPositions[MotorIndex] = MotorState_Closed; } - bool IsHOpen = PendingPacket.FlowerPositions[MotorIndex] == 3; + bool IsHOpen = PendingPacket.FlowerPositions[MotorIndex] == MotorState_HalfOpen; if (ui_ToggleText(I, MakeString("Half Open (3)"), IsHOpen)) { - PendingPacket.FlowerPositions[MotorIndex] = 3; + PendingPacket.FlowerPositions[MotorIndex] = MotorState_HalfOpen; } - bool IsMOpen = PendingPacket.FlowerPositions[MotorIndex] == 4; + bool IsMOpen = PendingPacket.FlowerPositions[MotorIndex] == MotorState_MostlyOpen; if (ui_ToggleText(I, MakeString("Mostly Open (4)"), IsMOpen)) { - PendingPacket.FlowerPositions[MotorIndex] = 4; + PendingPacket.FlowerPositions[MotorIndex] = MotorState_MostlyOpen; } - bool IsOpen = PendingPacket.FlowerPositions[MotorIndex] == 2; + bool IsOpen = PendingPacket.FlowerPositions[MotorIndex] == MotorState_Open; if (ui_ToggleText(I, MakeString("Open (2)"), IsOpen)) { - PendingPacket.FlowerPositions[MotorIndex] = 2; + PendingPacket.FlowerPositions[MotorIndex] = MotorState_Open; } } ui_EndRow(I);