attenuator: Print level at time of write.

This commit is contained in:
Harald Welte 2021-04-13 17:21:04 +02:00
parent 2a91fc857b
commit f025e64a57
1 changed files with 2 additions and 0 deletions

View File

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