print message on protection latch

pull/1/head
Sebastien Bourdeauducq 2017-05-10 00:10:16 +08:00
parent 0d0c09b074
commit 9662570999
1 changed files with 3 additions and 0 deletions

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");
}
});
}