aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-03-03 08:32:05 -0500
committerRob Austein <sra@hactrn.net>2017-03-03 08:32:05 -0500
commitad9bca732bf9001aa5293ede674a52eada3118fa (patch)
tree1c19123f82547a5fb138bc89a7656678e966ca69
parent91bb0444d8830569bfc09900d599c9ae39953f01 (diff)
Doh! Works better if one tests the right status bit.
-rw-r--r--ecdsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecdsa.c b/ecdsa.c
index bbb9865..3ca377b 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -828,7 +828,7 @@ static hal_error_t verilog_point_pick_random(const verilog_ecdsa_driver_t * cons
check(hal_io_write(core, ADDR_CTRL, zero, sizeof(zero)));
check(hal_io_next(core));
- check(hal_io_wait_ready(core));
+ check(hal_io_wait_valid(core));
for (int i = 0; i < sizeof(b); i += 4)
check(hal_io_read(core, driver->x_addr + i/4, &b[sizeof(b) - 4 - i], 4));