Skip to content

Commit

Permalink
fixed coding format
Browse files Browse the repository at this point in the history
  • Loading branch information
takurot committed Apr 23, 2024
1 parent 44e15b2 commit dd6b82b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,9 @@ class auto_charger { // Variables Half-Implemented (Not Thermistors ADC)
void send_heartbeat() { /* Creates the message to send to the robot using the "compose" function below */
uint8_t sw_state{0};

if(is_connected()){
if (is_connected()) {
sw_state = 1;
}else{
} else {
sw_state = 0;
}

Expand Down Expand Up @@ -899,7 +899,7 @@ class state_controller { // Variables Implemented
LOG("plugged to manual charger\n");
set_new_state(POWER_STATE::MANUAL_CHARGE);
} else if (!charge_guard_asserted && ac.is_docked() && bmu.is_chargable()) {
if(ac.is_charger_ready() == true){
if (ac.is_charger_ready() == true) {
LOG("docked to auto charger\n");
set_new_state(POWER_STATE::AUTO_CHARGE);
}
Expand Down

0 comments on commit dd6b82b

Please sign in to comment.