Skip to content

Commit 773f382

Browse files
committed
Fix charger test
1 parent 8a28ff2 commit 773f382

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/drivers/ui/SaboCoverUI/sabo_cover_ui_controller.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,11 @@ bool SaboCoverUIController::TestIMU() {
204204
}
205205

206206
bool SaboCoverUIController::TestCharger() {
207-
Robot* robot = GetRobot();
208207
if (!robot) return false;
209-
210208
auto* sabo = static_cast<SaboRobot*>(robot);
211-
if (!sabo) return false;
212209

213210
const CHARGER_STATUS status = sabo->GetChargerStatus();
214-
// TODO: Why do I get COMMS_ERROR here?
215-
// return status != CHARGER_STATUS::FAULT && status != CHARGER_STATUS::COMMS_ERROR;
216-
return status != CHARGER_STATUS::FAULT;
211+
return status != CHARGER_STATUS::FAULT && status != CHARGER_STATUS::COMMS_ERROR;
217212
}
218213

219214
bool SaboCoverUIController::TestGPS() {

0 commit comments

Comments
 (0)