Skip to content

Commit

Permalink
Add hardware test app init note
Browse files Browse the repository at this point in the history
  • Loading branch information
john0312 committed Jul 28, 2024
1 parent f5470e6 commit 02daa44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fw/Core/Hitcon/Hitcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ void hitcon_run() {
// run hardware test mode if MODE/SETTINGS Button is pressed during
// initializing
if (HAL_GPIO_ReadPin(BtnA_GPIO_Port, BtnA_Pin) == GPIO_PIN_RESET) {
// Test app needs to be the last to be initialized because otherwise
// irController may override its callbacks.
hardware_test_app.Init();
badge_controller.change_app(&hardware_test_app);
} else {
hitcon::ir::irController.Init();
}

scheduler.Queue(&InitTask, nullptr);
Expand Down

0 comments on commit 02daa44

Please sign in to comment.