This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 508f0d4b730 doc/userled: Fix printf example
508f0d4b730 is described below
commit 508f0d4b730d41720fe01c1693df53ab7477c5e0
Author: Jiri Vlasak <[email protected]>
AuthorDate: Wed Feb 11 17:12:12 2026 +0100
doc/userled: Fix printf example
It is needed to escape \ itself.
Signed-off-by: Jiri Vlasak <[email protected]>
---
Documentation/components/drivers/character/leds/userled.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/components/drivers/character/leds/userled.rst
b/Documentation/components/drivers/character/leds/userled.rst
index 89cb9c2ce67..dd8ae215ccb 100644
--- a/Documentation/components/drivers/character/leds/userled.rst
+++ b/Documentation/components/drivers/character/leds/userled.rst
@@ -29,7 +29,7 @@ Also is possible for users to control the LEDs from "nsh>"
using the "printf" co
.. code-block:: bash
NuttShell (NSH)
- nsh> printf \x000000a5 > /dev/userleds
+ nsh> printf \\x000000a5 > /dev/userleds
This command will turn ON the LEDs mapped to bits 0, 2, 5 and 7.