Skip to content

Commit

Permalink
move sensor and lcd init to hard boot only
Browse files Browse the repository at this point in the history
  • Loading branch information
devbis committed Oct 19, 2023
1 parent f34cc64 commit b9de280
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,6 @@ void user_init(bool isRetention)
#endif

init_i2c();
init_sensor();
init_lcd(!isRetention);
// initialize indicator (ble symbol)
ind_init();

if(!isRetention){
/* Populate properties with compiled-in values */
populate_sw_build();
Expand All @@ -357,6 +352,9 @@ void user_init(bool isRetention)
/* Initialize Stack */
stack_init();

init_sensor();
init_lcd(true);

/* Initialize user application */
user_app_init();

Expand Down Expand Up @@ -420,5 +418,6 @@ void user_init(bool isRetention)
}else{
/* Re-config phy when system recovery from deep sleep with retention */
mac_phyReconfig();
init_lcd_deepsleep();
}
}

0 comments on commit b9de280

Please sign in to comment.