Skip to content

Commit

Permalink
compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mushroom-dev committed Dec 10, 2024
1 parent a0afafe commit 03376ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ class SmsCommunicatorPlugin @Inject constructor(
if (divided.size == 3 && !isMeal) {
sendSMS(Sms(receivedSms.phoneNumber, rh.gs(R.string.wrong_format)))
} else if (bolus > 0.0) {
val iob = (iobCobCalculator.calculateIobFromBolus() + iobCobCalculator.calculateIobFromTempBasalsIncludingConvertedExtended()).round()
val iob = iobCobCalculator.calculateIobFromBolus().round().iob + iobCobCalculator.calculateIobFromTempBasalsIncludingConvertedExtended().round().basaliob
val passCode = generatePassCode()
val reply = if (isMeal)
rh.gs(R.string.smscommunicator_meal_bolus_reply_with_code, bolus, passCode, iob)
Expand Down

0 comments on commit 03376ef

Please sign in to comment.