Commit graph

323 commits

Author SHA1 Message Date
jbr7rr
cd65639abb Only update basal from Notification when it has changed 2023-05-29 20:05:21 +02:00
jbr7rr
3c8faa6723 Use timeout in connect states, other minor changes 2023-05-29 14:40:08 +02:00
jbr7rr
37a6a4f271 Update unit tests, cleanup 2023-05-28 19:50:00 +02:00
jbr7rr
d8427c6d56 Rescan when connection is lost during connecting 2023-05-28 10:27:13 +02:00
jbr7rr
5a6d5b41d4 Added some stuff to the overview 2023-05-25 20:14:51 +02:00
jbr7rr
404365aed2 Merge remote-tracking branch 'nightscout/dev' into medtrum-activate-patch2 2023-05-25 15:48:13 +02:00
jbr7rr
c2e1017d73 Moved sequence counter to BLEComm 2023-05-25 14:53:53 +02:00
jbr7rr
3027c2ffa5 Initial bolus implementation, further connection improvements 2023-05-25 13:32:24 +02:00
jbr7rr
a9ebdcfe68 Connection improvements, TBR sync improved 2023-05-23 10:20:22 +02:00
jbr7rr
0d8f07ad0a Initial TBR implementation and pumpSync for basals etc 2023-05-20 20:40:55 +02:00
Milos Kozak
7faa34aa50 fix activities translation 2023-05-17 18:36:01 +02:00
Milos Kozak
fba804b2cb EOPATCH: disable screen rotation during activation 2023-05-14 10:04:07 +02:00
Milos Kozak
4a1ed1f584
Merge pull request #2531 from jbr7rr/dash-fix-long-0temp
Dash: Workaround for long 0temp
2023-05-09 11:58:19 +02:00
Milos Kozak
62cea47d57
New Crowdin updates (#2499)
* New translations objectives.xml (Norwegian)

* New translations strings.xml (Spanish)

* New translations objectives.xml (Italian)

* New translations strings.xml (Italian)

* New translations objectives.xml (Russian)

* New translations objectives.xml (Russian)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)
2023-05-08 08:13:06 +02:00
jbr7rr
b367bdbee8 Dash: Workaround for long 0temp 2023-05-05 08:25:11 +02:00
jbr7rr
ccd4d0d550 Stop waitForConnection when disconnected during connecting 2023-04-20 14:52:07 +02:00
jbr7rr
59761364ea Close gatt when BLE is disconnected 2023-04-18 08:04:30 +02:00
jbr7rr
61e873dbcc Deactivation, better connection flow 2023-04-15 15:23:26 +02:00
jbr7rr
fff833dae3 Patch activation flow 2023-04-11 15:43:29 +02:00
Milos Kozak
2967ff4ef9
New Crowdin updates (#2474)
* New translations strings.xml (Spanish)

* New translations strings.xml (Spanish)

* New translations strings.xml (French)

* New translations strings.xml (French)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Romanian)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Catalan)

* New translations strings.xml (Czech)

* New translations strings.xml (Danish)

* New translations strings.xml (German)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Italian)

* New translations strings.xml (Korean)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Swedish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Croatian)

* Update source file strings.xml

* New translations strings.xml (Polish)

* New translations strings.xml (Spanish)

* New translations strings.xml (Slovak)

* New translations strings.xml (Czech)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Turkish)

* New translations strings.xml (Norwegian)

* New translations strings.xml (French)

* New translations strings.xml (Russian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations alert_descriptions.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations objectives.xml (Lithuanian)

* Update source file objectives.xml

* New translations objectives.xml (Lithuanian)

* New translations objectives.xml (Romanian)

* New translations objectives.xml (French)

* New translations objectives.xml (Spanish)

* New translations objectives.xml (Afrikaans)

* New translations objectives.xml (Bulgarian)

* New translations objectives.xml (Catalan)

* New translations objectives.xml (Czech)

* New translations objectives.xml (Danish)

* New translations objectives.xml (German)

* New translations objectives.xml (Greek)

* New translations objectives.xml (Hebrew)

* New translations objectives.xml (Italian)

* New translations objectives.xml (Korean)

* New translations objectives.xml (Dutch)

* New translations objectives.xml (Norwegian)

* New translations objectives.xml (Polish)

* New translations objectives.xml (Portuguese)

* New translations objectives.xml (Russian)

* New translations objectives.xml (Slovak)

* New translations objectives.xml (Swedish)

* New translations objectives.xml (Turkish)

* New translations objectives.xml (Chinese Simplified)

* New translations objectives.xml (Portuguese, Brazilian)

* New translations objectives.xml (Hebrew)

* New translations objectives.xml (Slovak)

* New translations objectives.xml (Spanish)

* New translations objectives.xml (Turkish)

* New translations objectives.xml (Czech)
2023-04-11 09:30:49 +02:00
Milos Kozak
173cc754d5 DanaI: fix saving user options 2023-04-10 20:47:19 +02:00
Carlos Rafael Giani
8537c42d0a combov2: Use dedicated variable for keeping track of suspended state
This is necessary to prevent race conditions during connection setup.
isSuspended() was relying on the driverStateUIFlow to determine if the
pump is currently suspended. However, because driverStateUIFlow is updated
in a separate coroutine, there is a chance that the Suspended state is
set shortly _after_ connect() called isSuspended() to determine if the
pump is suspended or not, causing connect() to do the wrong thing and
assume that the pump is currently connected. Since the main screen does
not show the current profile number, this leads to the error message
"profile 1 must be the active profile, not profile 0".
2023-04-03 20:52:48 +02:00
jbr7rr
af6445a3dc NotificationPacket 2023-03-28 19:26:58 +02:00
Milos Kozak
003f323d4c
Merge pull request #2464 from dv1/combov2-fixes-001
Fixes to combov2 pairing PIN entry UI, the pairing activity, and TDD history retrieval and activity background
2023-03-25 20:12:38 +01:00
jbr7rr
cafdd6cf8f Implement GetRecordPacket (initial) 2023-03-25 16:55:06 +01:00
jbr7rr
db409f5b7f Packet implementation 2023-03-24 19:50:19 +01:00
jbr7rr
90392b2452 Packet classes 2023-03-24 19:50:19 +01:00
jbr7rr
7afa0beb0a Prepare patch step WIP 2023-03-24 19:50:19 +01:00
jbr7rr
8f6dfbdf88 Overview fragment based on eopatch layout 2023-03-24 19:50:19 +01:00
jbr7rr
43515f7b17 Buttons in overview 2023-03-24 19:50:19 +01:00
jbr7rr
485826682e Implemented state to initialize pump connection 2023-03-24 19:50:19 +01:00
jbr7rr
27159d6e47 Review comments 2023-03-24 19:39:23 +01:00
jbr7rr
ed100a4eb0 BLEComm: Added callbacks to enable handling of notifications in calling class 2023-03-24 19:39:23 +01:00
jbr7rr
f31f6c1649 Proper handling of setCharacteristicNotification 2023-03-24 19:39:23 +01:00
jbr7rr
baa4376f68 Added MedtrumService 2023-03-24 19:38:48 +01:00
jbr7rr
b635ad26d8 Initial Medtrum BLEComm 2023-03-24 19:38:48 +01:00
jbr7rr
37a6fa9220 Added Medtrum pump type etc 2023-03-24 19:38:48 +01:00
jbr7rr
18be54f489 Empty plugin 2023-03-24 19:38:48 +01:00
Milos Kozak
1920bc7ce5
New Crowdin updates (#2465)
* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Czech)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Slovak)

* New translations strings.xml (Hebrew)
2023-03-23 10:32:05 +01:00
Carlos Rafael Giani
a0e65370dc combov2: Ask for Bluetooth permissions before pairing 2023-03-22 09:02:42 +01:00
Carlos Rafael Giani
d280a2bec5 comboctl-main: Allow fetching TDDs while the pump is suspended
There is no good reason for disallowing TDD retrieval while the Combo
is suspended - the TDD history screens are accessible, and TDD retrieval
does not cause any insulin delivery to take place.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-22 08:53:21 +01:00
Carlos Rafael Giani
6435b36f7e combov2: Use layout_weight to make PIN field adapt to horizontal space 2023-03-19 17:40:41 +01:00
Milos Kozak
438f384c67 lints 2023-03-16 18:36:47 +01:00
Milos Kozak
53c13684ea EOPATCH2: fix NS carbs sync 2023-03-16 18:29:53 +01:00
Milos Kozak
294f3cb789
Merge pull request #2457 from dv1/combov2-fixes-001
combov2: Fixes for the refresh button, unsafe casts, crashes due to Bluetooth, improved warning screen handling, and additional language support
2023-03-13 22:21:45 +01:00
Carlos Rafael Giani
9979331ef0 comboctl-parser: Fix typo in E2BatteryEmptyErrorScreenParsing test
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-13 21:46:31 +01:00
Milos Kozak
6e223dd5f4
New Crowdin updates (#2456)
* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations alert_descriptions.xml (Lithuanian)

* New translations exam.xml (Bulgarian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations objectives.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)
2023-03-13 21:32:18 +01:00
miyeongkim
eaa32355cd
Merge branch 'nightscout:dev' into dev 2023-03-13 11:25:58 +09:00
miyeongkim
804ee6e898 fix "ArithmeticException: divide by zero" 2023-03-13 11:24:06 +09:00
Carlos Rafael Giani
bec7a4aa97 combov2: Replace unsafe casts 2023-03-12 22:40:54 +01:00