# If we error out several times then reset the chip and restart
# This uses a special register value from a Chip Select Register
# to test that the chip is in the operation state we expect
if not ((err_cnt+1) % 2):
# If we error out several times then reset the chip and restart
# This uses a special register value from a Chip Select Register
# to test that the chip is in the operation state we expect
if not ((err_cnt+1) % 2):