diff --git a/source/shoh/src/threads/master/Master.cpp b/source/shoh/src/threads/master/Master.cpp index f6c8e69..775771b 100644 --- a/source/shoh/src/threads/master/Master.cpp +++ b/source/shoh/src/threads/master/Master.cpp @@ -7,6 +7,14 @@ #include "Master.h" +static const char* rotary_direction[] = +{ + "Right", + "Left", + "Press", + "Idle" +}; + Master::Master(ThreadCommon::QueueManager* qm) : _qm(qm) { @@ -21,7 +29,6 @@ void Master::HandleEventType(Event* e, Event::EventType type) case Event::Rotary: //Comes from rotary, goes to manager _qm->send(ThreadCommon::QueueManager::manager_event_master, e, 0); - DebugRotaryEvent(e->getDataOf(Event::Rotary)); break; case Event::InternalTemp: // TODO remove (deprecated) @@ -41,31 +48,6 @@ void Master::HandleEventType(Event* e, Event::EventType type) } } -void Master::DebugRotaryEvent(EventRawData e_data) -{ - bool LedState = true; - switch(e_data) - { - case ThreadCommon::RotaryAction::Right: - Board_LED_Set(ThreadCommon::RotaryAction::Right, LedState); - printf("Right\r\n"); - break; - case ThreadCommon::RotaryAction::Left: - Board_LED_Set(ThreadCommon::RotaryAction::Left, LedState); - printf("Left\r\n"); - break; - case ThreadCommon::RotaryAction::Press: - Board_LED_Set(ThreadCommon::RotaryAction::Press, LedState); - printf("Press\r\n"); - break; - case ThreadCommon::RotaryAction::Idle: - //Board_LED_Set(ThreadCommon::RotaryAction::Right, LedState); - printf("Idle\r\n"); - break; - } - LedState = !LedState; -} - void Master::taskFunction() { Event data(Event::Null, 0); for (;;) { diff --git a/source/shoh/src/threads/master/Master.h b/source/shoh/src/threads/master/Master.h index 690385c..b0ae831 100644 --- a/source/shoh/src/threads/master/Master.h +++ b/source/shoh/src/threads/master/Master.h @@ -25,7 +25,6 @@ private: Event* message; ThreadCommon::QueueManager* _qm; void HandleEventType(Event* e, Event::EventType type); - void DebugRotaryEvent(EventRawData data); }; void thread_master(void* pvParams);