print message on protection latch

This commit is contained in:
Sebastien Bourdeauducq 2017-05-10 00:10:16 +08:00
parent 0d0c09b074
commit 9662570999

View File

@ -122,6 +122,9 @@ pub fn process_errors() {
if errors_n & AI_ERRN == 0 {
hprintln!("Anode overcurrent");
}
if errors_n & ERR_LATCHN == 0 {
hprintln!("Protection latched");
}
});
}