AP_RSSI: minor format fix

This commit is contained in:
Randy Mackay 2018-07-28 13:33:59 +09:00
parent 08ef942907
commit 9deb0d7d12
1 changed files with 4 additions and 4 deletions

View File

@ -132,16 +132,16 @@ float AP_RSSI::read_receiver_rssi()
float receiver_rssi = 0.0f; float receiver_rssi = 0.0f;
switch (rssi_type) { switch (rssi_type) {
case RssiType::RSSI_DISABLED : case RssiType::RSSI_DISABLED:
receiver_rssi = 0.0f; receiver_rssi = 0.0f;
break; break;
case RssiType::RSSI_ANALOG_PIN : case RssiType::RSSI_ANALOG_PIN:
receiver_rssi = read_pin_rssi(); receiver_rssi = read_pin_rssi();
break; break;
case RssiType::RSSI_RC_CHANNEL_VALUE : case RssiType::RSSI_RC_CHANNEL_VALUE:
receiver_rssi = read_channel_rssi(); receiver_rssi = read_channel_rssi();
break; break;
case RssiType::RSSI_RECEIVER : { case RssiType::RSSI_RECEIVER: {
int16_t rssi = RC_Channels::get_receiver_rssi(); int16_t rssi = RC_Channels::get_receiver_rssi();
if (rssi != -1) { if (rssi != -1) {
receiver_rssi = rssi / 255.0; receiver_rssi = rssi / 255.0;