diff --git a/.gitignore b/.gitignore index 2fbfebe..0b882a8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /gen /mir /internal-mir +/export RepaField.prg RepaField.prg.debug.xml RepaField-settings.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..a54d54c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,53 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "type": "monkeyc", + "request": "launch", + "name": "Run App - epix2", + "stopAtLaunch": false, + "device": "epix2" + }, + { + "type": "monkeyc", + "request": "launch", + "name": "Run App - venu2", + "stopAtLaunch": false, + "device": "venu2" + }, + { + "type": "monkeyc", + "request": "launch", + "name": "Run App - venu2plus", + "stopAtLaunch": false, + "device": "venu2plus" + }, + { + "type": "monkeyc", + "request": "launch", + "name": "Run App - fr265", + "stopAtLaunch": false, + "device": "fr265" + }, + { + "type": "monkeyc", + "request": "launch", + "name": "Run Tests", + "runTests": true, + "device": "${command:GetTargetDevice}" + }, + { + "type": "monkeyc", + "request": "launch", + "name": "Run Complication Apps", + "stopAtLaunch": false, + "complicationSubscriberFolder": "${command:GetComplicationSubscriberFolder}", + "complicationPublisherFolder": "${command:GetComplicationPublisherFolder}", + "device": "${command:GetTargetDevice}" + } + ] +} \ No newline at end of file diff --git a/manifest.xml b/manifest.xml index 8610910..07898e4 100644 --- a/manifest.xml +++ b/manifest.xml @@ -4,6 +4,10 @@ + + + + diff --git a/repafield1.png b/repafield1.png index 129d46b..2e895fe 100644 Binary files a/repafield1.png and b/repafield1.png differ diff --git a/resources/settings/properties.xml b/resources/settings/properties.xml index 1afc74f..8dca41f 100644 --- a/resources/settings/properties.xml +++ b/resources/settings/properties.xml @@ -1,5 +1,5 @@ - 0.8.0 + 1.0.0 0088FF 0088FF FFFF00 diff --git a/source/RepaFieldView.mc b/source/RepaFieldView.mc index f168c6d..fcabd77 100644 --- a/source/RepaFieldView.mc +++ b/source/RepaFieldView.mc @@ -214,12 +214,12 @@ class RepaFieldView extends WatchUi.DataField { } else { timerState = Activity.TIMER_STATE_OFF; } - if (info.distanceToDestination != null) { + if (info has :distanceToDestination && info.distanceToDestination != null) { toDestination = info.distanceToDestination as Float; } else { toDestination = 0.0f; } - if (info.offCourseDistance != null) { + if (info has :offCourseDistance && info.offCourseDistance != null) { offCourse = info.offCourseDistance as Float; } else { offCourse = 0.0f;