@Trying,
Here is the file location in the version I am using, which is FreeAPS.
Depending on which version you are using, the file name or directory might be slightly different, but it should be in the same general location.
Anyway, this is my file and location. You can probably just search for the file name, which is “CarbEntryEditViewController.swift”.
\\LOOP_VERSION\LoopWorkspace\LoopKit\LoopKitUI\CarbKit\CarbEntryEditViewController.swift
Once you have found the right file, you just look for this string in the file and make this change:
Original string:
public var maxAbsorptionTime = TimeInterval(hours: 8)
Change it to this:
public var maxAbsorptionTime = TimeInterval(hours: 24)
Pretty simple, right?
One other thing. The default max carbs allowed in my version was silly. It was only 250 grams.
So if you leave the max carbs as it is, you can only enter 250g. That might be fine for a normal meal, but if you are doing this to get 24 hours of increased insulin, that would only be like a 10g of carbs per hour increase. That might not be enough.
So if you want to also change the max carbs you are allowed to enter, it’s pretty simple because it is in the same file. So it’s very easy to change it at the same time!
In this example below, I am showing it changing from a max of 250 grams of carbs, to a max of 750 grams. But you can pretty much put whatever value you want in there.
Original string:
public var maxQuantity = HKQuantity(unit: .gram(), doubleValue: 250)
Change it to this:
public var maxQuantity = HKQuantity(unit: .gram(), doubleValue: 750)
Does all of that make sense?