DynISF: prevent crash
This commit is contained in:
parent
52feef2efe
commit
3a123f2cba
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ class DetermineBasalAdapterSMBDynamicISFJS internal constructor(private val scri
|
||||||
this.profile.put("TDD", tdd)
|
this.profile.put("TDD", tdd)
|
||||||
|
|
||||||
|
|
||||||
if (sp.getBoolean(R.string.key_adjust_sensitivity, false) && tdd7D != null)
|
if (sp.getBoolean(R.string.key_adjust_sensitivity, false) && tdd7D != null && tdd7D != 0.0)
|
||||||
autosensData.put("ratio", tddLast24H / tdd7D)
|
autosensData.put("ratio", tddLast24H / tdd7D)
|
||||||
else
|
else
|
||||||
autosensData.put("ratio", 1.0)
|
autosensData.put("ratio", 1.0)
|
||||||
|
|
Loading…
Reference in a new issue