From 8fc4976ac88cd5da1e72fc07d1dd57bb35806f65 Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Fri, 9 Sep 2022 09:57:04 +0200 Subject: [PATCH] Added app.ino file description as well as renamed the type of the payload for more clarity --- src/app/app.ino | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/app/app.ino b/src/app/app.ino index 21e03be..dd56d52 100644 --- a/src/app/app.ino +++ b/src/app/app.ino @@ -1,3 +1,10 @@ +/** + * Author : Anatole SCHRAMM-HENRY + * Created the : 30/05/2021 + * This is the source file containing the main app. + * It defines all the logic which make the weather station work. + */ + #include "definition.h" #include "BoardConfig.h" #include "WSPeripherals.h" @@ -7,7 +14,7 @@ BoardConfig defaultBC; WSPeripherals WSP(defaultBC); uint8_t sleepSlots(0), rCode(0); -DataPacket payload; +WeatherStationDataPacket payload; void setup() { @@ -87,7 +94,7 @@ void loop() sleepSlots++; } -void debugStruct(DataPacket *p) +void debugStruct(WeatherStationDataPacket *p) { Serial.println("##############DATA##############"); Serial.print("ID : ");