From ad9bca732bf9001aa5293ede674a52eada3118fa Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 3 Mar 2017 08:32:05 -0500 Subject: Doh! Works better if one tests the right status bit. --- ecdsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3