Skip to content

Commit

Permalink
Re-disable IMU stuff (to be reverted)
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Dec 18, 2023
1 parent 850c406 commit adeb568
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion software/firmware/.settings/language.settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="1347002660722691700" id="org.eclipse.embedcdt.managedbuild.cross.arm.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Arm Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-495364040879034531" id="org.eclipse.embedcdt.managedbuild.cross.arm.core.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Arm Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
Expand Down
2 changes: 1 addition & 1 deletion software/firmware/src/peripherals/src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void system_enter_power_off_mode(uint32_t wake_on_gpio, uint32_t wake_on_timesta
bluetooth_deinit();
buttons_deinit();
buzzer_deinit();
imu_deinit();
// TODO: UNCOMMENT: imu_deinit();
leds_deinit();
ranging_radio_deinit();
storage_deinit();
Expand Down
4 changes: 2 additions & 2 deletions software/firmware/src/tasks/app_task_ranging.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ void AppTaskRanging(void *uid)
storage_flush_and_shutdown();
else
{
storage_write_motion_status(imu_read_in_motion());
// TODO: UNCOMMENT: storage_write_motion_status(imu_read_in_motion());
battery_register_event_callback(battery_event_handler);
imu_register_motion_change_callback(motion_change_handler, OPERATION_MODE_ACCONLY);
// TODO: UNCOMMENT: imu_register_motion_change_callback(motion_change_handler, OPERATION_MODE_ACCONLY);
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion software/firmware/src/tasks/app_tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void run_tasks(void)
battery_monitor_init();
bluetooth_init(uid);
buzzer_init();
imu_init();
// TODO: UNCOMMENT: imu_init();
leds_init();
rtc_init();
storage_init();
Expand Down

0 comments on commit adeb568

Please sign in to comment.