Skip to content

Commit

Permalink
temporary workaround to prevent issues from DST switchover
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Mar 13, 2016
1 parent bb9d0c9 commit 89b609c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/oref0-determine-basal.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if (!module.parent) {
} else { console.error("Could not determine last BG time"); }
var minAgo = (systemTime - bgTime) / 60 / 1000;

if (minAgo > 10 || minAgo < -5) { // Dexcom data is too old, or way in the future
if (minAgo > 70 || minAgo < -65) { // Dexcom data is too old, or way in the future
var reason = "BG data is too old, or clock set incorrectly "+bgTime+" vs "+systemTime;
console.error(reason);
return 1;
Expand Down

0 comments on commit 89b609c

Please sign in to comment.