diff --git a/Software/X-Track/MDK-ARM/Objects/X-Track.hex b/Software/X-Track/MDK-ARM/Objects/X-Track.hex index 7c8d6dd2..d2821a6a 100644 --- a/Software/X-Track/MDK-ARM/Objects/X-Track.hex +++ b/Software/X-Track/MDK-ARM/Objects/X-Track.hex @@ -3648,7 +3648,7 @@ :10E3E00003F0FDFA37A1304803F0F9FA3AA12E48BC :10E3F00003F0F5FAFFF766FDFFF762FDFFF7E6FAB7 :10E40000FFF7C8FCFFF7FEFBFFF74CFA00F09AF9A4 -:10E41000FFF7A2FF00F096F84FF47A74002804DAB0 +:10E41000FFF7A2FF00F096F84FF47A74002804DCAE :10E4200039A1214803F0DBFA11E000F025F928B109 :10E43000012322463A493B48FCF7CFFE00F044F95D :10E4400028B10123224638493648FCF7C6FEFFF7BB @@ -3911,7 +3911,7 @@ :10F450001AA1284601F000F927B0F0BD2D000000E8 :10F4600053444641542076313031303200000000A0 :10F470004F4B00004552524F52000000446563203C -:10F48000323120323032310A32303A35363A343283 +:10F48000323120323032310A32313A32363A313288 :10F490000000000041524D43430A76353036303982 :10F4A0003630000076382E312E312064657600002B :10F4B0005F5649464558546563680000582D5452BC diff --git a/Software/X-Track/MDK-ARM/proj.uvoptx b/Software/X-Track/MDK-ARM/proj.uvoptx index 7567a101..cfab9e51 100644 --- a/Software/X-Track/MDK-ARM/proj.uvoptx +++ b/Software/X-Track/MDK-ARM/proj.uvoptx @@ -236,7 +236,7 @@ App - 0 + 1 0 0 0 diff --git a/Software/X-Track/USER/HAL/HAL.cpp b/Software/X-Track/USER/HAL/HAL.cpp index 2bea1ad4..5c80f692 100644 --- a/Software/X-Track/USER/HAL/HAL.cpp +++ b/Software/X-Track/USER/HAL/HAL.cpp @@ -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;