Remove validation of unused cmd_delay parameter

This commit is contained in:
eleksir
2024-05-06 23:25:34 +03:00
parent 120b7c995a
commit 7474028b82

View File

@@ -69,11 +69,6 @@ func readConfFile(path string) (Config, error) {
return Config{}, err
}
if cfg.CmdDelay == 0 {
cfg.CmdDelay = 20
log.Printf("cmd_delay can not be 0, setting to %d milliseconds", cfg.CmdDelay)
}
if cfg.LoopDelay == 0 {
cfg.LoopDelay = 2000
log.Printf("loop_delay set to %d milliseconds", cfg.LoopDelay)