Skip to content

Commit

Permalink
add_cpu_information_from_core
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 9, 2023
1 parent f64037a commit c26a423
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spinn_front_end_common/utilities/emergency_recovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ def _emergency_state_check():
for chip in machine.chips:
for p in chip.processors:
try:
info = txrx.get_cpu_information_from_core(
chip.x, chip.y, p)
if info.state in (
CPUState.RUN_TIME_EXCEPTION, CPUState.WATCHDOG):
infos.add_processor(chip.x, chip.y, p, info)
txrx.add_cpu_information_from_core(
chip.x, chip.y, p,
[CPUState.RUN_TIME_EXCEPTION, CPUState.WATCHDOG])
except Exception:
errors.append((chip.x, chip.y, p))
if len(infos):
Expand Down

0 comments on commit c26a423

Please sign in to comment.