diff --git a/ampel-firmware/sensor_console.h b/ampel-firmware/sensor_console.h index fe30469d47c9fa47f35beed710ef037b0484a731..9594317b575bf53db0da92f34e62613423fe6a75 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); }