update function
| 70 | |
| 71 | //update function |
| 72 | void IS_DoorControl::update() |
| 73 | { |
| 74 | //Turn off digital output if timer has expired |
| 75 | if ((m_bCurrentState == HIGH) && (millis() - m_lTimeTurnedOn >= m_lDelayTime)) |
| 76 | { |
| 77 | m_bCurrentState = LOW; |
| 78 | writeStateToPin(); |
| 79 | //Decrement number of active timers |
| 80 | if (st::Everything::bTimersPending > 0) st::Everything::bTimersPending--; |
| 81 | m_bTimerPending = false; |
| 82 | } |
| 83 | |
| 84 | //check to see if input pin has changed state |
| 85 | InterruptSensor::update(); |
| 86 | } |
| 87 | |
| 88 | void IS_DoorControl::beSmart(const String &str) |
| 89 | { |
nothing calls this directly
no outgoing calls
no test coverage detected