Update apps/golf-gps/golf-gps.js

Co-authored-by: Rob Pilling <robpilling@gmail.com>
pull/3467/head
jeonlab 2024-07-03 17:11:38 -04:00 committed by GitHub
parent 56793614e9
commit c8ce7539df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ function finishGame() {
let saveFileContents = ' '; let saveFileContents = ' ';
let parTotal = 0; let parTotal = 0;
Bangle.setGPSPower(0); Bangle.setGPSPower(0, "golf-gps");
const saveFilename = `Scorecard-${date.getFullYear()}${zeroPad(date.getMonth() + 1, 2)}${zeroPad(date.getDate(), 2)}`; const saveFilename = `Scorecard-${date.getFullYear()}${zeroPad(date.getMonth() + 1, 2)}${zeroPad(date.getDate(), 2)}`;
const saveFile = require("Storage").open(saveFilename, "w"); const saveFile = require("Storage").open(saveFilename, "w");
for (let i = 1; i < 19; i++) { for (let i = 1; i < 19; i++) {