Skip to content

Commit

Permalink
Merge pull request #719 from cyberman54/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
cyberman54 authored Jan 10, 2021
2 parents 7927e86 + 44ce73a commit 278dcbf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions platformio_orig.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ description = Paxcounter is a device for metering passenger flows in realtime. I

[common]
; for release_version use max. 10 chars total, use any decimal format like "a.b.c"
release_version = 2.1.1
release_version = 2.2.0
; DEBUG LEVEL: For production run set to 0, otherwise device will leak RAM while running!
; 0=None, 1=Error, 2=Warn, 3=Info, 4=Debug, 5=Verbose
debug_level = 3
Expand Down Expand Up @@ -135,4 +135,4 @@ upload_protocol = esptool
[env:dev]
upload_protocol = esptool
build_type = debug
platform = https://github.com/platformio/platform-espressif32.git#develop
platform = https://github.com/platformio/platform-espressif32.git#develop
4 changes: 2 additions & 2 deletions src/gpsread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ time_t get_gpstime(uint16_t *msec) {
tm.Year = CalendarYrToTm(atoi(gpsyear.value())); // year offset from 1970
t = makeTime(tm);

// ESP_LOGD(TAG, "GPS time/date = %2d:%2d:%2d / %2d.%2d.%2d", tm.Hour,
// tm.Minute, tm.Second, tm.Day, tm.Month, tm.Year + 1970);
ESP_LOGD(TAG, "GPS time/date = %2d:%2d:%2d / %2d.%2d.%2d", tm.Hour,
tm.Minute, tm.Second, tm.Day, tm.Month, tm.Year + 1970);

// add protocol delay with millisecond precision
t += delay_ms / 1000 - 1; // whole seconds
Expand Down
5 changes: 3 additions & 2 deletions src/timekeeper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ void IRAM_ATTR setMyTime(uint32_t t_sec, uint16_t t_msec,
_seconds(), timeSetSymbols[mytimesource]);
} else {
timesyncer.attach(TIME_SYNC_INTERVAL_RETRY * 60, setTimeSyncIRQ);
ESP_LOGD(TAG, "[%0.3f] Timesync failed, invalid time fetched | source: %c",
_seconds(), timeSetSymbols[mytimesource]);
time_t unix_sec_at_compilation = compiledUTC();
ESP_LOGD(TAG, "[%0.3f] Failed to synchronise time from source %c | unix sec obtained from source: %d | unix sec at program compilation: %d",
_seconds(), timeSetSymbols[mytimesource], time_to_set, unix_sec_at_compilation);
}
}

Expand Down

0 comments on commit 278dcbf

Please sign in to comment.