| 30 | extern int pins[]; |
| 31 | |
| 32 | bool Calculator::OnEnable() { |
| 33 | Serial.print(millis()); Serial.print(":\t"); |
| 34 | Serial.println("CalcEnable: OnEnable"); |
| 35 | Serial.println("Activating sensors"); |
| 36 | |
| 37 | StatusRequest* sr = getStatusRequest(); |
| 38 | iNS = sr->getCount(); |
| 39 | |
| 40 | distance = 0; |
| 41 | for (int i = 0; i < iNS; i++) { |
| 42 | SuperSensor *s = new SuperSensor( iS, pins[i], this, sr); |
| 43 | s->setId(i + 1); |
| 44 | s->begin(); |
| 45 | s->restartDelayed(); |
| 46 | } |
| 47 | |
| 48 | return true; |
| 49 | } |
| 50 | |
| 51 | void Calculator::OnDisable() { |
| 52 | if ( timedOut() ) { |
nothing calls this directly
no test coverage detected