Fix status of active boxes
Enabling gps feature always ensures gps sensor is detected as well
Clean up code with gcc warnings