attenuator: Print level at time of write.
This commit is contained in:
parent
2a91fc857b
commit
f025e64a57
|
@ -68,6 +68,8 @@ int attenuator_set(uint8_t channel, uint8_t stage, uint8_t val_qdb)
|
|||
if (val > 0x1f)
|
||||
return -ERANGE;
|
||||
|
||||
printf("Setting CH%u-ST%u to %u dB\r\n", channel, stage, val);
|
||||
|
||||
/* the DAT-31A-SP actually has a B0 which works in half-dB steps,
|
||||
* but according to the manual it must alsays be 0 */
|
||||
val = val * 2;
|
||||
|
|
Loading…
Reference in New Issue