cleanup and optimizations

This commit is contained in:
Mikayla Fischler
2024-02-18 16:49:39 -05:00
parent 827953c0a1
commit 1a9892b291
3 changed files with 16 additions and 26 deletions

View File

@@ -41,8 +41,7 @@ function rtu.load_config()
local cfv = util.new_validator()
cfv.assert_type_num(config.SpeakerVolume)
cfv.assert_min(config.SpeakerVolume, 0.0)
cfv.assert_max(config.SpeakerVolume, 3.0)
cfv.assert_range(config.SpeakerVolume, 0, 3)
cfv.assert_channel(config.SVR_Channel)
cfv.assert_channel(config.RTU_Channel)