Skip to content

Commit

Permalink
fix web, better precision
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGuyver committed Aug 20, 2024
1 parent 6c369cf commit 9b17b00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/addons/analog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void AnalogInput::process()
float magnitude_2 = 0.0f;

bool ema_option = analogOptions.analog_smoothing;
float ema_smoothing = analogOptions.smoothing_factor / 100.0f;
float ema_smoothing = analogOptions.smoothing_factor / 1000.0f;

struct adc_pair
{
Expand Down
2 changes: 1 addition & 1 deletion www/src/Addons/Analog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ const Analog = ({ values, errors, handleChange, handleCheckbox }) => {
hidden={!values.analog_smoothing}
type="number"
label={t('AddonsConfig:smoothing-factor')}
name="Smoothing_factor"
name="smoothing_factor"
className="form-control-sm"
groupClassName="col-sm-3 mb-3"
value={values.smoothing_factor}
Expand Down

0 comments on commit 9b17b00

Please sign in to comment.