Skip to content

Commit

Permalink
Merge pull request #673 from collmot/fix/canfly-log-var-at-startup
Browse files Browse the repository at this point in the history
fix: sys.canfly variable should start from 'true' until we detect that the USB cable is connected
  • Loading branch information
ataffanel authored Mar 4, 2021
2 parents cc8aa29 + eef2619 commit 54d7cca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hal/src/pm_stm32f4.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ void pmTask(void *param)
pmSetChargeState(charge500mA);
systemWaitStart();

systemSetCanFly(true);

while(1)
{
vTaskDelay(100);
Expand Down

0 comments on commit 54d7cca

Please sign in to comment.