attenuator: Fix stored/cached value per attenuator

This commit is contained in:
Harald Welte 2021-05-05 22:57:04 +02:00
parent 4e20a652a2
commit 7b684307f7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}