We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46de23c commit 6041f91Copy full SHA for 6041f91
examples/application/soracom-gps-tracker/MeasureTask.cpp
@@ -74,9 +74,9 @@ void MeasureTaskFunction(void* param) {
74
75
static bool measure(JsonDocument& doc) {
76
const auto now = time(nullptr);
77
- if (now < 0) return false;
+ if (now <= 0) return false;
78
79
- doc["time"] = time(nullptr);
+ doc["time"] = now;
80
doc["uptime"] = millis() / 1000;
81
82
int index[5];
0 commit comments