You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
316 B

package m9zApi
import g "tgk-touch/internal/global"
const (
defaultLoopCount = 10
maxLoopCount = 10
)
func configuredLoopCount() int {
loopCount := g.Config().DeviceInfo.LoopCount
if loopCount <= 0 {
return defaultLoopCount
}
if loopCount > maxLoopCount {
return maxLoopCount
}
return loopCount
}