remove debugging code
This commit is contained in:
parent
9766b4eccb
commit
15d64ce4eb
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue