This is called to actually do the control
| 94 | |
| 95 | // This is called to actually do the control |
| 96 | void PowerManager::serviceLoop() |
| 97 | { |
| 98 | while (1) { |
| 99 | usleep(1000*gConfig.getNum("GSM.Radio.PowerManager.SamplePeriod")); |
| 100 | sampleT3122(); |
| 101 | if (mLast.elapsed() < gConfig.getNum("GSM.Radio.PowerManager.Period")) continue; |
| 102 | internalControlStep(); |
| 103 | mLast.now(); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | |
| 108 | void* GSM::PowerManagerServiceLoopAdapter(PowerManager *pm) |
no test coverage detected