From 9a44a20a9d25f7e5d38ff943fbbd51d0f305ce3f Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 13 Jan 2017 12:10:00 -0500 Subject: command: Check for reentrant calls to sendf() Allow sendf() to be called from irq and timer context - check for the case where sendf() is called while already in sendf() and simply discard those messages. This makes it safe to use output() debugging calls even in irq and timer context. Signed-off-by: Kevin O'Connor --- docs/Protocol.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'docs/Protocol.md') diff --git a/docs/Protocol.md b/docs/Protocol.md index 5c375e30..39b81a8a 100644 --- a/docs/Protocol.md +++ b/docs/Protocol.md @@ -105,9 +105,7 @@ output("The value of %u is %s with size %u.", x, buf, buf_len); ``` The output() function is similar in usage to printf() - it is intended -to generate and format arbitrary messages for human consumption. It is -a wrapper around sendf() and as with sendf() it should not be called -from interrupts or timers. +to generate and format arbitrary messages for human consumption. Declaring constants ------------------- -- cgit v1.2.3-70-g09d2