mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Whitespace fixes
This commit is contained in:
parent
f1ac4f8461
commit
a67d2f8a9e
2 changed files with 5 additions and 5 deletions
|
@ -162,7 +162,7 @@ void init(void)
|
|||
|
||||
ledInit();
|
||||
|
||||
#ifdef SPEKTRUM_BIND
|
||||
#ifdef SPEKTRUM_BIND
|
||||
if (feature(FEATURE_RX_SERIAL)) {
|
||||
switch (masterConfig.rxConfig.serialrx_provider) {
|
||||
case SERIALRX_SPEKTRUM1024:
|
||||
|
|
|
@ -219,15 +219,15 @@ static inline void hottEAMUpdateBattery(HOTT_EAM_MSG_t *hottEAMMessage)
|
|||
|
||||
static inline void hottEAMUpdateCurrentMeter(HOTT_EAM_MSG_t *hottEAMMessage)
|
||||
{
|
||||
int32_t amp = amperage / 10;
|
||||
hottEAMMessage->current_L = amp & 0xFF;
|
||||
int32_t amp = amperage / 10;
|
||||
hottEAMMessage->current_L = amp & 0xFF;
|
||||
hottEAMMessage->current_H = amp >> 8;
|
||||
}
|
||||
|
||||
static inline void hottEAMUpdateBatteryDrawnCapacity(HOTT_EAM_MSG_t *hottEAMMessage)
|
||||
{
|
||||
int32_t mAh = mAhDrawn / 10;
|
||||
hottEAMMessage->batt_cap_L = mAh & 0xFF;
|
||||
int32_t mAh = mAhDrawn / 10;
|
||||
hottEAMMessage->batt_cap_L = mAh & 0xFF;
|
||||
hottEAMMessage->batt_cap_H = mAh >> 8;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue