do not calculate autosens when no bg data available

This commit is contained in:
Milos Kozak 2017-04-23 09:47:27 +02:00
parent 1a76809f33
commit 2ce08260bf

View file

@ -25,6 +25,9 @@ public class Autosens {
//console.error(mealTime);
if (glucose_data.size() < 3)
return new AutosensResult();
double deviationSum = 0;
double carbsAbsorbed = 0;