Skip to content

Commit 7547c09

Browse files
committed
librtas: deprecate rtas_delay_timeout()
Despite its description rtas_delay_timeout() sets an internal timeout value as opposed to returning the delay time as documented. This timeout short cuts the logic in handle_delay(). Fortunately this is unsed by default. The library should run operations to completion, otherwise we risk leaving things in an unrecoverable state. Mark rtas_delay_timeout() with __attribute__ ((deprecated)) as preperation for eventual removal. Signed-off-by: Tyrel Datwyler <[email protected]>
1 parent b8d3405 commit 7547c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

librtas_src/librtas.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ extern "C" {
5454

5555
int rtas_activate_firmware(void);
5656
int rtas_cfg_connector(char *workarea);
57-
int rtas_delay_timeout(uint64_t timeout_ms);
57+
int rtas_delay_timeout(uint64_t timeout_ms) __attribute__ ((deprecated));
5858
int rtas_display_char(char c);
5959
int rtas_display_msg(char *buf);
6060
int rtas_errinjct(int etoken, int otoken, char *workarea);

0 commit comments

Comments
 (0)