aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2023-12-23 20:47:53 +0100
committerJF <JF002@users.noreply.github.com>2023-12-23 21:12:25 +0100
commitca7d8a668d37d3377aeb38d122a9eccafdd6822d (patch)
tree8216213ceefd97e2518c5eddc91649e824ae082d /src
parentd56df38aeb8ac16aea6b4fa04c59b10c6eaf87f4 (diff)
Simple Weather Service
Fix ToUInt64() in SimpleWeatherService.cpp. Fix typo in SimpleWeatherService.md.
Diffstat (limited to 'src')
-rw-r--r--src/components/ble/SimpleWeatherService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ble/SimpleWeatherService.cpp b/src/components/ble/SimpleWeatherService.cpp
index 8317aeab..886bf659 100644
--- a/src/components/ble/SimpleWeatherService.cpp
+++ b/src/components/ble/SimpleWeatherService.cpp
@@ -30,7 +30,7 @@ namespace {
uint64_t ToUInt64(const uint8_t* data) {
return data[0] + (data[1] << 8) + (data[2] << 16) + (data[3] << 24) + (static_cast<uint64_t>(data[4]) << 32) +
- (static_cast<uint64_t>(data[5]) << 48) + (static_cast<uint64_t>(data[6]) << 48) + (static_cast<uint64_t>(data[7]) << 56);
+ (static_cast<uint64_t>(data[5]) << 40) + (static_cast<uint64_t>(data[6]) << 48) + (static_cast<uint64_t>(data[7]) << 56);
}
int16_t ToInt16(const uint8_t* data) {