improve test dbg
This commit is contained in:
parent
b4b657b4fd
commit
e4230537e2
2
util.py
2
util.py
@ -83,7 +83,7 @@ def test_read_write_reg(spi, dbg=False):
|
||||
write_reg(spi, FIFOTHR, test_value)
|
||||
check = read_register(spi, FIFOTHR)
|
||||
write_reg(spi, FIFOTHR, initial_val)
|
||||
if(check != test_value):
|
||||
if((check != test_value) or dbg):
|
||||
print("initial value ", initial_val)
|
||||
print("test value ", test_value)
|
||||
print("check ",check)
|
||||
|
Loading…
Reference in New Issue
Block a user