From 457485aebff5c6bbe9e4075dd0f61bbafa9dc8d9 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Thu, 24 Apr 2008 23:47:22 +0200 Subject: * digital/io/src - replace the if by an assert (thanks to ni). --- digital/io/src/asserv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'digital') diff --git a/digital/io/src/asserv.c b/digital/io/src/asserv.c index b60af43c..799cd5f8 100644 --- a/digital/io/src/asserv.c +++ b/digital/io/src/asserv.c @@ -164,8 +164,7 @@ static inline uint8_t asserv_twi_send_command (uint8_t command, uint8_t length) { /* Check we are not doing a command ? */ - if (!asserv_last_cmd_ack ()) - return 1; + assert (asserv_last_cmd_ack ()); /* Put the sequence number */ asserv_twi_buffer[0] = ++asserv_twi_seq; -- cgit v1.2.3