Skip to content

Commit

Permalink
当 I2C_Scan() <= 0 时不初始化sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
FASTSHIFT committed Dec 21, 2021
1 parent cb48786 commit c147f09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Software/X-Track/MDK-ARM/Objects/X-Track.hex
Original file line number Diff line number Diff line change
Expand Up @@ -3648,7 +3648,7 @@
:10E3E00003F0FDFA37A1304803F0F9FA3AA12E48BC
:10E3F00003F0F5FAFFF766FDFFF762FDFFF7E6FAB7
:10E40000FFF7C8FCFFF7FEFBFFF74CFA00F09AF9A4
:10E41000FFF7A2FF00F096F84FF47A74002804DAB0
:10E41000FFF7A2FF00F096F84FF47A74002804DCAE
:10E4200039A1214803F0DBFA11E000F025F928B109
:10E43000012322463A493B48FCF7CFFE00F044F95D
:10E4400028B10123224638493648FCF7C6FEFFF7BB
Expand Down Expand Up @@ -3911,7 +3911,7 @@
:10F450001AA1284601F000F927B0F0BD2D000000E8
:10F4600053444641542076313031303200000000A0
:10F470004F4B00004552524F52000000446563203C
:10F48000323120323032310A32303A35363A343283
:10F48000323120323032310A32313A32363A313288
:10F490000000000041524D43430A76353036303982
:10F4A0003630000076382E312E312064657600002B
:10F4B0005F5649464558546563680000582D5452BC
Expand Down
2 changes: 1 addition & 1 deletion Software/X-Track/MDK-ARM/proj.uvoptx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@

<Group>
<GroupName>App</GroupName>
<tvExp>0</tvExp>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
Expand Down
2 changes: 1 addition & 1 deletion Software/X-Track/USER/HAL/HAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ static MillisTaskManager taskManager;

static void HAL_Sensor_Init()
{
if(HAL::I2C_Scan() < 0)
if(HAL::I2C_Scan() <= 0)
{
Serial.println("I2C: disable sensors");
return;
Expand Down

0 comments on commit c147f09

Please sign in to comment.