From d08c38ec4b42574beb94cf22e6f35f7ea812d150 Mon Sep 17 00:00:00 2001 From: Eric Duminil <eric.duminil@gmail.com> Date: Mon, 7 Feb 2022 12:36:47 +0100 Subject: [PATCH] Not much to change in sensor_console --- ampel-firmware/sensor_console.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ampel-firmware/sensor_console.h b/ampel-firmware/sensor_console.h index fe30469..9594317 100644 --- a/ampel-firmware/sensor_console.h +++ b/ampel-firmware/sensor_console.h @@ -1,6 +1,6 @@ #ifndef SENSOR_CONSOLE_H_INCLUDED #define SENSOR_CONSOLE_H_INCLUDED -#include <Arduino.h> +#include <Arduino.h> // For Flash strings, uint8_t and int32_t /** Other scripts can use this namespace, in order to define commands, via callbacks. * Those callbacks can then be used to send commands to the sensor (reset, calibrate, led on/off, ...) @@ -12,7 +12,7 @@ namespace sensor_console { void defineIntCommand(const char *name, void (*function)(int32_t), const __FlashStringHelper *doc_fstring); void defineStringCommand(const char *name, void (*function)(char*), const __FlashStringHelper *doc_fstring); - void processSerialInput(const byte in_byte); + void processSerialInput(const uint8_t in_byte); void execute(const char *command_line); } -- GitLab