mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Cosmetics
This commit is contained in:
parent
5d557c73e8
commit
6cd32e7bd6
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ void parseTelemHubByte(uint8_t byte)
|
|||
if ((uint8_t)structPos == offsetof(FrskyHubData, volts)) {
|
||||
// Voltage => Cell number + Cell voltage
|
||||
uint8_t battnumber = ((frskyHubData.volts & 0x00F0) >> 4);
|
||||
if (battnumber<12) {
|
||||
if (battnumber < 12) {
|
||||
if (frskyHubData.cellsCount < battnumber+1) {
|
||||
frskyHubData.cellsCount = battnumber+1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue