AAPS-Omnipod / AndroidAPS

GNU Affero General Public License v3.0
21 stars 19 forks source link

throw IllegalArgumentException for zero or negative durations #14

Closed samspycher closed 3 years ago

samspycher commented 3 years ago

This adds a sanity check on durations for TBRs in the command TempBasalExtraCommand:

if duration is negative or zero, we throw an IllegalArgumentException