From 21122827e6022af19f269342ce8f62343321fdea Mon Sep 17 00:00:00 2001 From: Jade Mattsson Date: Thu, 24 Oct 2024 12:05:11 +1100 Subject: [PATCH] fixup uart examples --- docs/modules/uart.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/uart.md b/docs/modules/uart.md index 0110433e..8c2a791d 100644 --- a/docs/modules/uart.md +++ b/docs/modules/uart.md @@ -43,7 +43,7 @@ uart.on("data", 4, if data=="quit" then uart.on("data") -- unregister callback function end -end, 0) +end) -- when '\r' is received. uart.on("data", "\r", function(data) @@ -51,7 +51,7 @@ uart.on("data", "\r", if data=="quit\r" then uart.on("data") -- unregister callback function end -end, 0) +end) -- uart 2 uart.on(2, "data", "\r",