spacer: More refactoring.

pull/3713/head
Pavel Machek 2025-01-05 20:17:41 +01:00
parent 64c11e1309
commit d9d6e23d93
1 changed files with 7 additions and 4 deletions

View File

@ -118,6 +118,11 @@ let skys = {
snum: 0,
sats_used: 0,
reset: function() {
this.snum = 0;
this.sats = [];
this.sats_used = 0;
},
parseSats: function(s) {
let view = 1 * s[3];
let k = Math.min(4, view - this.snum);
@ -298,9 +303,7 @@ let sky = {
//print(this.sats);
if (this.all.sats_used < 5)
this.sky_start = getTime();
this.all.snum = 0;
this.all.sats = [];
this.all.sats_used = 0;
this.all.reset();
},
parseRaw: function(msg, lost) {
//print(msg);