Ticket Created

WERETECH-8118

Sim issue with saveWaypoints

In the sim using 3.1.5, the following sometimes doesn't work.

Toybox.PersistedContent.saveWaypoint(location, {:name => name});

It works fine in the device (a real 1030).

Parents
  • This is what I have at this point to test that the Waypoints are being sucessfully saved. Is this a valid case to cover the bug we are discussing?
    To make this easier I clear %TEMP%/Garmin so I always see only the 1 waypoint.

                var location = new Position.Location({:latitude => 39.737306, :longitude => -104.990852, :format => :degrees});
                System.println("Hit A");
                PersistedContent.saveWaypoint(location, {:name => "Denver"});
                
                var wpIterator = PersistedContent.getWaypoints();
                System.println("");
    
                var wp = wpIterator.next();
                while (wp != null) {
                    System.println(wp.getId());
                    System.println(wp.getName());
                    wp.remove();
                    wp = wpIterator.next();
                }

Comment
  • This is what I have at this point to test that the Waypoints are being sucessfully saved. Is this a valid case to cover the bug we are discussing?
    To make this easier I clear %TEMP%/Garmin so I always see only the 1 waypoint.

                var location = new Position.Location({:latitude => 39.737306, :longitude => -104.990852, :format => :degrees});
                System.println("Hit A");
                PersistedContent.saveWaypoint(location, {:name => "Denver"});
                
                var wpIterator = PersistedContent.getWaypoints();
                System.println("");
    
                var wp = wpIterator.next();
                while (wp != null) {
                    System.println(wp.getId());
                    System.println(wp.getName());
                    wp.remove();
                    wp = wpIterator.next();
                }

Children