Idle Management

markBusy()
markIdle()

Example:

function sampleSensor() {
  markBusy();
  // do some work ...
  markIdle();
}

Toggles the module busy state. While busy, the module prohibits the system from going into deep sleep.