Skip to content

Commit

Permalink
Merge pull request #40 from Sensirion/fix-age-latest-sample
Browse files Browse the repository at this point in the history
fixe age latest sample in download header
  • Loading branch information
LeonieFierz authored Jun 19, 2024
2 parents f5241f7 + c18f0c3 commit c4a6232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ std::string DataProvider::_buildAdvertisementData() {
DownloadHeader DataProvider::_buildDownloadHeader() {
DownloadHeader header;
uint32_t age = static_cast<uint32_t>(
((millis() - _latestHistoryTimeStampAtDownloadStart) / 1000));
millis() - _latestHistoryTimeStampAtDownloadStart);
header.setDownloadSampleType(_sampleConfig.downloadType);
header.setIntervalMilliSeconds(_historyIntervalMilliSeconds);
header.setAgeOfLatestSampleMilliSeconds(age);
Expand Down

0 comments on commit c4a6232

Please sign in to comment.