diff --git a/esp-vent-main/src/StateHandler/StateHandler.cpp b/esp-vent-main/src/StateHandler/StateHandler.cpp index 14b912f..f21db3f 100644 --- a/esp-vent-main/src/StateHandler/StateHandler.cpp +++ b/esp-vent-main/src/StateHandler/StateHandler.cpp @@ -58,7 +58,6 @@ StateHandler::displaySet (size_t mode) default: break; } - _lcd->clear (); _lcd->printOnLineOne (line_up); _lcd->printOnLineTwo (line_down); @@ -234,7 +233,6 @@ StateHandler::handleTickValue (int value) if (sensor_timer > TIMER_SENSORS_TIMEOUT) { updateSensorValues (); - //displaySet (SENSORS); sensor_timer = 0; } if (value > TIMER_PRESSURE_TIMEOUT) @@ -305,7 +303,6 @@ StateHandler::pid () void StateHandler::updateSensorValues () { - sensors_data[TEMPERATURE] = humidity.readT (); sensors_data[PRESSUREDAT] = _pressure->getPressure (); sensors_data[CO2] = co2.read (); diff --git a/esp-vent-main/src/esp-vent-main.cpp b/esp-vent-main/src/esp-vent-main.cpp index 41b65aa..5167b14 100644 --- a/esp-vent-main/src/esp-vent-main.cpp +++ b/esp-vent-main/src/esp-vent-main.cpp @@ -70,35 +70,14 @@ main (void) BUTTON_CONTROL_TOG_MODE); /* Other declarations */ int getcounterValue; - - uint32_t sleep_Arr[100] = {0}; - - CoreDebug->DEMCR |= 1 << 24; - DWT->CTRL |= 1; - - volatile static int i1 = 0 ; - volatile static int i2 = 0 ; - volatile static int i = 0 ; - - - while (1) { - i1 = DWT->CYCCNT; - getcounterValue = glob_time.getCounter (); sw_up.listen (); sw_down.listen (); sw_toggle.listen (); ventMachine.HandleState (Event (Event::eTick, getcounterValue)); glob_time.tickCounter (1); - -// i2 = DWT->CYCCNT; -// sleep_Arr[i] = (i2 - i1) / 72; -// ++i; -// if (i == 100) -// while(1); } - return 0; }