Centralising parameter check

Removed sanity checks in RowingStatistics, as the configmanager centralises the parameter check
This commit is contained in:
Jaap van Ekris 2023-01-11 23:29:52 +01:00 committed by GitHub
parent 0378f27655
commit ce9294dfb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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