Skip to content

Commit

Permalink
AP_HAL_ESP32: re-order initialiser lines so -Werror=reorder will work
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Nov 12, 2024
1 parent b7ccee5 commit 35f2dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ESP32/AnalogIn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ void adc_calibration_deinit(adc_cali_handle_t handle)

//ardupin is the ardupilot assigned number, starting from 1-8(max)
AnalogSource::AnalogSource(int16_t ardupin, adc_channel_t adc_channel, float scaler, float initial_value) :
_ardupin(ardupin),
_adc_channel(adc_channel),
_ardupin(ardupin),
_scaler(scaler),
_value(initial_value),
_latest_value(initial_value),
Expand Down

0 comments on commit 35f2dce

Please sign in to comment.