摘要 |
A method comprises determining if a sensor reading has changed, determining, in response to the sensor reading having changed, if the sensor reading is toggling, reporting, in response to the sensor reading toggling, a bouncing sensor-state error, determining, in response to the sensor reading having not changed, if the sensor reading is stable, determining, in response to the sensor reading being stable, if the sensor reading is different from a most-recent stable sensor reading, and reporting, in response to the sensor reading being different from a most-recent stable sensor reading, a sensor state change.
|