mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-14 11:54:01 -04:00
AP_ADC: remove variable dead stores
This commit is contained in:
parent
a01b7e74f1
commit
f9d970c474
@ -191,7 +191,6 @@ float AP_ADC_ADS1115::_convert_register_data_to_mv(int16_t word) const
|
|||||||
pga = ADS1115_MV_0P256C;
|
pga = ADS1115_MV_0P256C;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
pga = 0.0f;
|
|
||||||
DEV_PRINTF("Wrong gain");
|
DEV_PRINTF("Wrong gain");
|
||||||
AP_HAL::panic("ADS1115: wrong gain selected");
|
AP_HAL::panic("ADS1115: wrong gain selected");
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user