aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2023-12-18 18:15:25 +0100
committerJF <JF002@users.noreply.github.com>2023-12-23 21:12:25 +0100
commitd29eb1ea994c1a8445bafc67d718aa017a5eba20 (patch)
treeee1eb11de05ee96f898dfe8598f849403099c736 /src/components
parent3a8c7dc038605f7a0ebefa479b204d6d019743cd (diff)
Simple Weather Service - code cleaning and improvements
Remove unused Weather debug app. Fix formatting in SimpleWeatherService.cpp.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ble/SimpleWeatherService.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/ble/SimpleWeatherService.cpp b/src/components/ble/SimpleWeatherService.cpp
index 3635fdfd..61ad4926 100644
--- a/src/components/ble/SimpleWeatherService.cpp
+++ b/src/components/ble/SimpleWeatherService.cpp
@@ -55,13 +55,13 @@ namespace {
return SimpleWeatherService::Forecast {timestamp, nbDays, days};
}
- MessageType GetMessageType(const uint8_t* data) {
- auto messageType = static_cast<MessageType>(*data);
- if(messageType > MessageType::Unknown) {
- return MessageType::Unknown;
- }
- return messageType;
+ MessageType GetMessageType(const uint8_t* data) {
+ auto messageType = static_cast<MessageType>(*data);
+ if (messageType > MessageType::Unknown) {
+ return MessageType::Unknown;
}
+ return messageType;
+ }
uint8_t GetVersion(const uint8_t* dataBuffer) {
return dataBuffer[1];