Skip to content

Commit

Permalink
follow style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Champers5000 committed Nov 1, 2023
1 parent da5adc9 commit 94a8708
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Drivers/Src/LTC681x.c
Original file line number Diff line number Diff line change
Expand Up @@ -963,8 +963,9 @@ int8_t LTC681x_rdstat(uint8_t reg, //Determines which Stat register is read bac
if (received_pec != data_pec)
{
pec_error = -1; //The pec_error variable is simply set negative if any PEC errors
if(reg<3){ //keep compiler happy and stop index outta bound errors
ic[c_ic].stat.pec_match[reg-1]=1;
if (reg < 3) {
//keep compiler happy and stop index outta bound errors
ic[c_ic].stat.pec_match[reg-1] = 1;
}
}

Expand Down

0 comments on commit 94a8708

Please sign in to comment.