Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
6
600SeriesAndroidUploader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cgm
uploader
600SeriesAndroidUploader
Commits
8f8ef8f9
"...enzevalos_iphone_workspace.git" did not exist on "5115f9f210a713d1106632243cf8cfa9f6d1d238"
Commit
8f8ef8f9
authored
8 years ago
by
Pogman
Browse files
Options
Downloads
Patches
Plain Diff
fix conflict
parent
f70ff417
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/info/nightscout/android/medtronic/MainActivity.java
+14
-13
14 additions, 13 deletions
.../java/info/nightscout/android/medtronic/MainActivity.java
with
14 additions
and
13 deletions
app/src/main/java/info/nightscout/android/medtronic/MainActivity.java
+
14
−
13
View file @
8f8ef8f9
...
...
@@ -114,19 +114,6 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc
private
StatusMessageReceiver
statusMessageReceiver
=
new
StatusMessageReceiver
();
private
MedtronicCnlAlarmReceiver
medtronicCnlAlarmReceiver
=
new
MedtronicCnlAlarmReceiver
();
public
static
String
strFormatSGV
(
float
sgvValue
)
{
if
(
mmolxl
)
{
NumberFormat
sgvFormatter
;
if
(
mmolxlDecimals
)
sgvFormatter
=
new
DecimalFormat
(
"0.00"
);
else
sgvFormatter
=
new
DecimalFormat
(
"0.0"
);
return
sgvFormatter
.
format
(
sgvValue
/
MMOLXLFACTOR
);
}
else
{
return
String
.
valueOf
(
sgvValue
);
}
}
public
static
long
getNextPoll
(
PumpStatusEvent
pumpStatusData
)
{
long
nextPoll
=
pumpStatusData
.
getEventDate
().
getTime
()
+
pumpStatusData
.
getPumpTimeOffset
()
+
MedtronicCnlIntentService
.
POLL_GRACE_PERIOD_MS
;
...
...
@@ -143,6 +130,20 @@ public class MainActivity extends AppCompatActivity implements OnSharedPreferenc
return
nextPoll
;
}
public
static
String
strFormatSGV
(
float
sgvValue
)
{
if
(
mmolxl
)
{
NumberFormat
sgvFormatter
;
if
(
mmolxlDecimals
)
{
sgvFormatter
=
new
DecimalFormat
(
"0.00"
);
}
else
{
sgvFormatter
=
new
DecimalFormat
(
"0.0"
);
}
return
sgvFormatter
.
format
(
sgvValue
/
MMOLXLFACTOR
);
}
else
{
return
String
.
valueOf
(
sgvValue
);
}
}
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
Log
.
i
(
TAG
,
"onCreate called"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment