Skip to content

Commit

Permalink
90m
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorkert committed Mar 10, 2023
1 parent 90105ed commit f02d3e8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
25 changes: 25 additions & 0 deletions 90m.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 3fac163876b15474ff552f0a7adaed7d6f54bcf4 Mon Sep 17 00:00:00 2001
From: bjorkert <[email protected]>
Date: Fri, 10 Mar 2023 20:26:25 +0100
Subject: [PATCH] 90m

---
Loop/View Controllers/CarbEntryViewController.swift | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Loop/View Controllers/CarbEntryViewController.swift b/Loop/View Controllers/CarbEntryViewController.swift
index 08355a2c..9c3e6cf2 100644
--- a/Loop/View Controllers/CarbEntryViewController.swift
+++ b/Loop/View Controllers/CarbEntryViewController.swift
@@ -435,7 +435,7 @@ final class CarbEntryViewController: LoopChartsTableViewController, Identifiable
cell.datePicker.preferredDatePickerStyle = .wheels
}
#endif
- cell.datePicker.maximumDate = date.addingTimeInterval(.hours(1))
+ cell.datePicker.maximumDate = date.addingTimeInterval(.minutes(90))
cell.datePicker.minimumDate = date.addingTimeInterval(.hours(-12))
cell.datePicker.minuteInterval = 1
cell.date = date
--
2.38.1

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ This patch automatically sets the 'Upload readings' option to 'On' by default wh
## View PreMeal in Nightscout
Due to overrides now being combinable with PreMeal, PreMeal is no longer sent as an override to Nightscout, leaving Nightscout without any indication that PreMeal is active. This patch addresses this issue by sending a Temporary target to Nightscout when PreMeal is turned on, resulting in a visual band in Nightscout to indicate that PreMeal is active. When PreMeal is turned off, the temporary target band is also ended.
&nbsp;
## Future carbs 90 minutes
This patch makes it possible to enter carbs 90 minutes into the future in order to register carbs for protein and fat. Loop 3 limits the future time change allowed to 1 hour. Remember that Loop may increase insulin dosing for future carbs - make sure that they actually arrive and are not already taken care of by your basal.
&nbsp;
&nbsp;
# Loop Follow patches
These patches are intended for the development branch of Loop Follow and can be built using the Xcode build method.
Expand Down
1 change: 1 addition & 0 deletions menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ if [ $(basename $PWD) = "LoopWorkspace" ]; then
add_patch "Dexcom G6 - Sensor Change" "g6_sensor_start" "CGMBLEKit"
add_patch "Dexcom G6 - Upload Readings" "upload_readings" "CGMBLEKit"
add_patch "View PreMeal in Nightscout" "preMeal" "Loop"
add_patch "Future carbs 90 minutes" "90m" "Loop"

echo "Downloading patches, please wait..."
cd $mytmpdir
Expand Down

0 comments on commit f02d3e8

Please sign in to comment.