| 428 | } |
| 429 | |
| 430 | void Smoothing::UpdateCurrentConfig(int settlingTime_ms) |
| 431 | { |
| 432 | _settlingTime = settlingTime_ms; |
| 433 | |
| 434 | Info(_log, "Updating current config (%d) => type: %s, pause: %s, settlingTime: %ims, interval: %ims (%iHz), antiFlickTres: %i, antiFlickStep: %i, antiFlickTime: %i", |
| 435 | _currentConfigId, QSTRING_CSTR(SmoothingConfig::EnumToString(_smoothingType)), (_pause) ? "true" : "false", int(_settlingTime), |
| 436 | int(_updateInterval), int(1000.0 / _updateInterval), _antiFlickeringTreshold, _antiFlickeringStep, int(_antiFlickeringTimeout)); |
| 437 | } |
| 438 | |
| 439 | int Smoothing::GetSuggestedInterval() |
| 440 | { |