mirror of
https://github.com/jwetzell/aas-js.git
synced 2026-08-31 01:39:03 +00:00
camelCase basketball shotclock
This commit is contained in:
@@ -96,7 +96,7 @@ class Console {
|
|||||||
if (!this.sportInitialized) {
|
if (!this.sportInitialized) {
|
||||||
this.time = {};
|
this.time = {};
|
||||||
|
|
||||||
this.shotclock = {};
|
this.shotClock = {};
|
||||||
|
|
||||||
this.home = {};
|
this.home = {};
|
||||||
|
|
||||||
@@ -115,17 +115,17 @@ class Console {
|
|||||||
this.time.display += `.${this.time.tenths}`;
|
this.time.display += `.${this.time.tenths}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.shotclock.seconds = bufferHex.substring(16, 18);
|
this.shotClock.seconds = bufferHex.substring(16, 18);
|
||||||
if (this.shotclock.seconds === 'aa') {
|
if (this.shotClock.seconds === 'aa') {
|
||||||
this.shotclock.seconds = '00';
|
this.shotClock.seconds = '00';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.shotclock.tenths = bufferHex.substring(19, 20);
|
this.shotClock.tenths = bufferHex.substring(19, 20);
|
||||||
if (this.shotclock.tenths === 'a') {
|
if (this.shotClock.tenths === 'a') {
|
||||||
this.shotclock.tenths = '0';
|
this.shotClock.tenths = '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.shotclock.display = `${this.shotclock.seconds}.${this.shotclock.tenths}`;
|
this.shotClock.display = `${this.shotClock.seconds}.${this.shotClock.tenths}`;
|
||||||
|
|
||||||
const seqNum = bufferHex.substring(20, 22);
|
const seqNum = bufferHex.substring(20, 22);
|
||||||
if (seqNum === '11') {
|
if (seqNum === '11') {
|
||||||
|
|||||||
Reference in New Issue
Block a user