function onStart(state) System.println("Depth Alert Feature Started");
class DepthAlertView extends WatchUi.View function onUpdate(dc) var depth = Sensor.getDepth(); if (depth != null && depth < 5) System.println("Shallow water!"); WatchUi.requestUpdate();
function initialize() AppBase.initialize();
Update - Garmin 10r-04 6953
function onStart(state) System.println("Depth Alert Feature Started");
class DepthAlertView extends WatchUi.View function onUpdate(dc) var depth = Sensor.getDepth(); if (depth != null && depth < 5) System.println("Shallow water!"); WatchUi.requestUpdate(); garmin 10r-04 6953 update
function initialize() AppBase.initialize(); function onStart(state) System