Centralising parameter check
Removed sanity checks in RowingStatistics, as the configmanager centralises the parameter check
This commit is contained in:
parent
0378f27655
commit
ce9294dfb8
|
|
@ -15,8 +15,8 @@ const log = loglevel.getLogger('RowingEngine')
|
|||
|
||||
function createRowingStatistics (config, session) {
|
||||
const numOfDataPointsForAveraging = config.numOfPhasesForAveragingScreenData
|
||||
const webUpdateInterval = Math.min(config.webUpdateInterval, 2000)
|
||||
const peripheralUpdateInterval = Math.min(config.peripheralUpdateInterval, 1000)
|
||||
const webUpdateInterval = config.webUpdateInterval
|
||||
const peripheralUpdateInterval = config.peripheralUpdateInterval
|
||||
const emitter = new EventEmitter()
|
||||
const rower = createRower(config.rowerSettings)
|
||||
const minimumStrokeTime = config.rowerSettings.minimumRecoveryTime + config.rowerSettings.minimumDriveTime
|
||||
|
|
|
|||
Loading…
Reference in New Issue