         snprintf(buffer, MAX_OUT_CHARS, "Power controller state changed: %d", power_controller.power_state.get());
         nh.loginfo(buffer);
     }
-    
+
     // Battery state change.
     if (batter_changed) {
         batter_changed = false;

}

void loop() {
    
//    if(millis() - last_debug > 1000){
//        last_debug = millis();
//        //snprintf(buffer, MAX_OUT_CHARS, "EXTERNAL_POWER_SENSE_1_PIN: %d", analogRead(EXTERNAL_POWER_SENSE_1_PIN));

    // Turn on power status light.
    pinMode(STATUS_LED_PIN, OUTPUT);
    digitalWrite(STATUS_LED_PIN, true);

//    pinMode(EXTERNAL_POWER_SENSE_1_PIN, INPUT);
//    pinMode(EXTERNAL_POWER_SENSE_2_PIN, INPUT);

