mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix termination condition detection error
This commit is contained in:
parent
7999ea04d1
commit
2a1ab53e6b
1 changed files with 1 additions and 1 deletions
|
|
@ -675,7 +675,7 @@ fn xmain() -> ! {
|
||||||
loop {
|
loop {
|
||||||
com.txrx(ComState::LOOP_TEST.verb);
|
com.txrx(ComState::LOOP_TEST.verb);
|
||||||
let ack = com.wait_txrx(ComState::LINK_READ.verb, Some(5000)); // should finish with 5 seconds
|
let ack = com.wait_txrx(ComState::LINK_READ.verb, Some(5000)); // should finish with 5 seconds
|
||||||
if (ack & 0xff) != 0x01 {
|
if (ack & 0xff) != 0x00 { //it will read 0xdd or 0xff if the EC is actually still in reset or held up
|
||||||
log::warn!("Wf200 reset took too long, trying to re-establish link sync...{:x}", ack);
|
log::warn!("Wf200 reset took too long, trying to re-establish link sync...{:x}", ack);
|
||||||
com.txrx(ComState::LINK_SYNC.verb);
|
com.txrx(ComState::LINK_SYNC.verb);
|
||||||
ticktimer.sleep_ms(200).unwrap();
|
ticktimer.sleep_ms(200).unwrap();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue