Simple Weather Service - code cleaning and improvements
Remove unused Weather debug app. Fix formatting in SimpleWeatherService.cpp.
This commit is contained in:
parent
3a8c7dc038
commit
d29eb1ea99
3 changed files with 6 additions and 285 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue