# Omnipod Looping

**URL:** <https://forum.fudiabetes.org/t/omnipod-looping/8012>\
**Category:** Type 1 & LADA\
**Tags:** dexcom, omnipod\
**Created:** [July 30, 2019, 4:26pm UTC](https://forum.fudiabetes.org/t/omnipod-looping/8012 "2019-07-30T16:26:34Z")\
**Posts on this page:** 1\
**Showing post:** 34

<div class="post-metadata">

**Author:** ![dm61](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/dm61/32/1602_2.png) [@dm61](https://forum.fudiabetes.org/u/dm61)\
**Post date:** [July 31, 2019, 3:18am UTC](https://forum.fudiabetes.org/t/omnipod-looping/8012/34 "2019-07-31T03:18:48Z")

</div>

> [@Running with OmniLoop](https://forum.fudiabetes.org/t/running-with-omniloop/7533/167):
>
> This would be awesome if you could take a look.

I think I have found how to fix the division by zero if a 0% override is selected. First, as you have already found, change from 10 to from 0 in LoopKit/LoopKitUI/Views/InsulinSensitivityScalingTableViewCell.swift

Then, change [this line](https://github.com/Kdisimone/LoopKit/blob/42d3afac724aab4d9b5ff17bead2f3cef68c30ba/LoopKit/TemporaryScheduleOverrideSettings.swift#L21) to this:

return insulinNeedsScaleFactor.map { 1.0 / ($0 == 0 ? 1.0 : $0) }

and [this line](https://github.com/Kdisimone/LoopKit/blob/42d3afac724aab4d9b5ff17bead2f3cef68c30ba/LoopKit/TemporaryScheduleOverrideSettings.swift#L25) to this:

return insulinNeedsScaleFactor.map { 1.0 / ($0 == 0 ? 1.0 : $0) }

There are two problems, however. First, this is really a quick-and-dirty fix. Second, and worse, the changes required are in LoopKit, not Loop. So, you can’t just change the code in checkouts and recompile. You’d need to make a private copy of Loop and LoopKit from Katie to your own repository and then make changes in a number of places so that Loop code knows that you are using a different LoopKit. Are you familiar with github and git by any chance?

---

_[View the full topic](https://forum.fudiabetes.org/t/omnipod-looping/8012)._
