From 176c543160e054213ff248a7697f7c8dba8e2e68 Mon Sep 17 00:00:00 2001 From: Peter Slattery Date: Tue, 13 Apr 2021 03:37:11 -0400 Subject: [PATCH] removed testing code to prevent sending motor states --- src/app/ss_blumen_lumen/blumen_lumen.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/app/ss_blumen_lumen/blumen_lumen.cpp b/src/app/ss_blumen_lumen/blumen_lumen.cpp index 84a1c89..c058497 100644 --- a/src/app/ss_blumen_lumen/blumen_lumen.cpp +++ b/src/app/ss_blumen_lumen/blumen_lumen.cpp @@ -631,15 +631,6 @@ BlumenLumen_CustomUpdate(gs_data UserData, app_state* State, context* Context) ShouldSendCurrentState = true; } - if (ShouldSendCurrentState) - { - BLState->LastSendTime = Context->SystemTime_Current; - BLState->LastSendState = NewMotorState; - Log_Message(GlobalLogBuffer, - "Would send motor state: %s", - NewMotorState == MotorState_Closed ? "Closed" : "Open"); - } - ShouldSendCurrentState = false; if (ShouldSendCurrentState) { BLState->LastSendTime = Context->SystemTime_Current; @@ -650,9 +641,9 @@ BlumenLumen_CustomUpdate(gs_data UserData, app_state* State, context* Context) Packet.MotorPacket.FlowerPositions[0] = NewMotorState; Packet.MotorPacket.FlowerPositions[1] = NewMotorState; Packet.MotorPacket.FlowerPositions[2] = NewMotorState; - gs_data Msg = StructToData(&Packet, blumen_packet); MessageQueue_Write(&BLState->OutgoingMsgQueue, Msg); + DEBUG_SentMotorCommand(Packet.MotorPacket, Context->ThreadContext); } }