mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
relocate standby condition
This commit is contained in:
parent
61594d53fb
commit
fc8eee58e7
2 changed files with 2 additions and 2 deletions
|
|
@ -303,7 +303,7 @@ bool HW::TimedOut() {
|
|||
auto bufISR = lastISR;
|
||||
uint64_t now = Delay::get_us();
|
||||
uint64_t timeSinceLast = now - bufISR;
|
||||
if(activeMode != Mode::Idle && activeMode != Mode::Generator && timeSinceLast > timeout) {
|
||||
if(activeMode != Mode::Idle && activeMode != Mode::Generator && !VNA::GetStandbyMode() && timeSinceLast > timeout) {
|
||||
LOG_WARN("Timed out, last ISR was at %lu%06lu, now %lu%06lu"
|
||||
, (uint32_t) (bufISR / 1000000), (uint32_t)(bufISR%1000000)
|
||||
, (uint32_t) (now / 1000000), (uint32_t)(now%1000000));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue