sensortools: Fix time in gps

pull/2579/head
Erik Andresen 2023-02-15 20:54:58 +01:00
parent cb8e733738
commit 549f5ddd9a
3 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,4 @@
0.01: New App!
0.02: Less time used during boot if disabled
0.03: Fixed some test data
0.04: Correct type of time attribute in gps to Date

View File

@ -205,7 +205,7 @@ exports.enable = () => {
"alt": 100,
"speed": 10,
"course": 12,
"time": Date.now(),
"time": new Date(),
"satellites": 7,
"fix": 1,
"hdop": 1
@ -228,7 +228,7 @@ exports.enable = () => {
let result = {
"speed": Math.random() * 3 + 2,
"time": Date.now(),
"time": new Date(),
"satellites": Math.floor(Math.random()*5)+3,
"fix": 1,
"hdop": Math.floor(Math.random(30)+1)
@ -268,7 +268,7 @@ exports.enable = () => {
"alt": NaN,
"speed": NaN,
"course": NaN,
"time": Date.now(),
"time": new Date(),
"satellites": 2,
"fix": 0,
"hdop": NaN
@ -301,7 +301,7 @@ exports.enable = () => {
"alt": currentAlt,
"speed": currentSpeed,
"course": currentCourse,
"time": Date.now(),
"time": new Date(),
"satellites": currentSats,
"fix": 1,
"hdop": 1

View File

@ -2,7 +2,7 @@
"id": "sensortools",
"name": "Sensor tools",
"shortName": "Sensor tools",
"version": "0.03",
"version": "0.04",
"description": "Tools for testing and debugging apps that use sensor input",
"icon": "icon.png",
"type": "bootloader",