attenuator: Fix stored/cached value per attenuator
This commit is contained in:
parent
4e20a652a2
commit
7b684307f7
|
@ -88,7 +88,7 @@ int attenuator_set(uint8_t channel, uint8_t stage, uint8_t val_qdb)
|
|||
gpio_pulse(ad->le.bank, ad->le.gpio_nr);
|
||||
|
||||
/* actual value we have set may not be exactly what was requested */
|
||||
g_att_state[channel][stage].value_qdB.current = val*4;
|
||||
g_att_state[channel][stage].value_qdB.current = val_qdb;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue