forked from M-Labs/artiq
1
0
Fork 0

firmware: add debug output to hmc542 driver.

This commit is contained in:
whitequark 2018-05-05 01:53:30 +00:00
parent 68ef09ed73
commit 8a70c18d1e
1 changed files with 5 additions and 1 deletions

View File

@ -42,6 +42,10 @@ pub fn program(card_index: usize, chan_index: usize, atten: u8) {
set_pins(sin | PIN_CLK); set_pins(sin | PIN_CLK);
} }
set_pins(PIN_LE); set_pins(PIN_LE);
debug!("card {} channel {} set to {}{} dB",
card_index, chan_index,
atten / 2, if atten % 2 != 0 { ".5" } else { "" });
} }
/// See `program`. /// See `program`.