I've been looking through the code in detail, and there seems to be something odd with get_sensor_data(self). The power mode is set to FORCED_MODE at the start, but is never returned to the mode it was in when starting the method. Is this intentional? Or should the mode be saved when entering this method, and reset just before returning?
I've been looking through the code in detail, and there seems to be something odd with
get_sensor_data(self)
. The power mode is set toFORCED_MODE
at the start, but is never returned to the mode it was in when starting the method. Is this intentional? Or should the mode be saved when entering this method, and reset just before returning?