From b912c9e42f267ca777cad6b2724ebc7af3e089ef Mon Sep 17 00:00:00 2001 From: Eric Duminil <eric.duminil@gmail.com> Date: Sun, 18 Apr 2021 00:06:29 +0200 Subject: [PATCH] Doc --- ampel-firmware/sensor_commands.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ampel-firmware/sensor_commands.cpp b/ampel-firmware/sensor_commands.cpp index 3b4d56b..48d59c0 100644 --- a/ampel-firmware/sensor_commands.cpp +++ b/ampel-firmware/sensor_commands.cpp @@ -77,7 +77,10 @@ namespace sensor_commands { return code; } - // http://www.gammon.com.au/serial + /* + * Saves bytes from Serial.read() until enter is pressed, and tries to run the corresponding command. + * http://www.gammon.com.au/serial + */ void processIncomingByte(const byte input_byte) { static char input_line[MAX_COMMAND_SIZE]; static unsigned int input_pos = 0; -- GitLab