mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 23:05:19 +03:00
Merge pull request #4424 from vladisenko/fix-a7105-timeout
Fix mistake in comparison operator. Fix whitespace and line breaks.
This commit is contained in:
commit
219e4be81b
1 changed files with 6 additions and 4 deletions
|
@ -81,14 +81,16 @@ void A7105Config (const uint8_t *regsTable, uint8_t size)
|
|||
uint32_t timeout = 1000;
|
||||
|
||||
for (uint8_t i = 0; i < size; i++) {
|
||||
if (regsTable[i] != 0xFF) {A7105WriteReg ((A7105Reg_t)i, regsTable[i]);}
|
||||
if (regsTable[i] != 0xFF) {
|
||||
A7105WriteReg ((A7105Reg_t)i, regsTable[i]);
|
||||
}
|
||||
}
|
||||
|
||||
A7105Strobe(A7105_STANDBY);
|
||||
|
||||
A7105WriteReg(A7105_02_CALC, 0x01);
|
||||
|
||||
while ((A7105ReadReg(A7105_02_CALC) != 0) || timeout--) {}
|
||||
while ((A7105ReadReg(A7105_02_CALC) != 0) && timeout--) {}
|
||||
|
||||
A7105ReadReg(A7105_22_IF_CALIB_I);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue