remove debugging code

This commit is contained in:
Milos Kozak 2016-07-03 18:46:14 +02:00
parent 9766b4eccb
commit 15d64ce4eb
2 changed files with 0 additions and 7 deletions

View file

@ -24,8 +24,4 @@ public class Config {
public static final boolean logConstraintsChanges = true;
public static final boolean logTempBasalsCut = true;
public static final boolean logNSUpload = true;
// Developing mode only - never turn on
// TODO: remove fakeGlucoseData
public static final boolean fakeGlucoseData = false;
}

View file

@ -272,9 +272,6 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
int sizeRecords = bgReadings.size();
if (sizeRecords < 4 || bgReadings.get(sizeRecords - 4).timeIndex < new Date().getTime() - 7 * 60 * 1000L) {
if (Config.fakeGlucoseData) {
return new GlucoseStatus(Math.random() * 400 + 40, (Math. random() - 0.5)* 18, (Math. random() - 0.5)* 18);
}
return null;
}