Skip to content

Commit

Permalink
Reinstating N5 limits
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSheehy committed Jun 11, 2014
1 parent c7da72e commit 6f3a99b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/ca/cumulonimbus/pressurenetsdk/CbService.java
Expand Up @@ -630,8 +630,16 @@ public void run() {
log("cbservice readingsender too soon, bailing");
return;
}



// limit the Nexus 5
// Hack to minimize sensor issues
if(Build.MODEL.equals("Nexus 5")) {
long n5Limit = 1000 * 60 * 60 * 1;
if(now - lastSubmit < (n5Limit)) {
log("Nexus 5 submitting too frequently, bailing");
return;
}
}

// retrieve updated settings
settingsHandler = new CbSettingsHandler(getApplicationContext());
Expand Down

0 comments on commit 6f3a99b

Please sign in to comment.