An nRF52 field node stopped its main loop overnight because a battery conversion never completed. Zephyr's analog-to-digital converter (ADC) call waited forever for the hardware interrupt, leaving the watchdog to restart the whole device. Ternmesh now gives that conversion 100 milliseconds.
If the deadline expires, the firmware disables further battery reads until restart and reports the charge as unknown. It also moves the sample buffer out of the function's temporary memory. Direct memory access (DMA) hardware can still write a late result after the call returns, so leaving that buffer on the stack could corrupt whatever data reused the same address.
This is a small patch with useful field evidence: the old wait failed on a real T1000-E, and a healthy reading normally takes less than a millisecond. Embedded teams should audit every driver call that waits forever and decide explicitly whether a missing sensor result should stop the product, restart it, or let it continue with an unknown value.