mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add visible warnings around COM timeouts
This commit is contained in:
parent
4a2445483d
commit
3cf1cbaeb6
1 changed files with 2 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ mod implementation {
|
|||
while self.csr.rf(utra::com::STATUS_HOLD) == 1 && !timed_out {
|
||||
if (self.ticktimer.elapsed_ms() - curtime) > to
|
||||
{
|
||||
log::warn!("COM timeout");
|
||||
timed_out = true;
|
||||
}
|
||||
xous::yield_slice();
|
||||
|
|
@ -150,6 +151,7 @@ mod implementation {
|
|||
while self.csr.rf(utra::com::STATUS_HOLD) == 1 && !timed_out {
|
||||
if (self.ticktimer.elapsed_ms() - curtime) > to
|
||||
{
|
||||
log::warn!("COM timeout");
|
||||
timed_out = true;
|
||||
}
|
||||
xous::yield_slice();
|
||||
|
|
|
|||
Loading…
Reference in a new issue