From e93fc0600c60de0ed442b7739d1098986bd49a32 Mon Sep 17 00:00:00 2001 From: odaki Date: Fri, 11 Sep 2020 07:54:47 +0900 Subject: [PATCH] Update atari_1020.cpp --- Grbl_Esp32/Custom/atari_1020.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Grbl_Esp32/Custom/atari_1020.cpp b/Grbl_Esp32/Custom/atari_1020.cpp index 24078ff1..f4fa420a 100644 --- a/Grbl_Esp32/Custom/atari_1020.cpp +++ b/Grbl_Esp32/Custom/atari_1020.cpp @@ -121,7 +121,7 @@ void atari_home_task(void* pvParameters) { // this task will only last as long as it is homing if (atari_homing) { // must be in idle or alarm state - if (sys.state == STATE_IDLE) { + if (sys.state == State::Idle) { switch (homing_phase) { case HOMING_PHASE_FULL_APPROACH: // a full width move to insure it hits left end WebUI::inputBuffer.push("G90G0Z1\r"); // lift the pen @@ -179,8 +179,8 @@ void atari_home_task(void* pvParameters) { void calc_solenoid(float penZ) { bool isPenUp; static bool previousPenState = false; - uint32_t solenoid_pen_pulse_len; // duty cycle of solenoid - isPenUp = ((penZ > 0) || (sys.state == STATE_ALARM)); // is pen above Z0 or is there an alarm + uint32_t solenoid_pen_pulse_len; // duty cycle of solenoid + isPenUp = ((penZ > 0) || (sys.state == State::Alarm)); // is pen above Z0 or is there an alarm // if the state has not change, we only count down to the pull time if (previousPenState == isPenUp) { // if state is unchanged