Simple Weather Service - code cleaning and improvements
Remove unused Weather debug app. Fix formatting in SimpleWeatherService.cpp.
This commit is contained in:

committed by
JF

parent
3a8c7dc038
commit
d29eb1ea99
@@ -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];
|
||||
|
Reference in New Issue
Block a user