Skip to content

Commit aa10d71

Browse files
committed
o
1 parent 372c50d commit aa10d71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

taw2mqtt.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ func main() {
127127
send_command(value, len(value))
128128
delete(CommandsToSend, key)
129129
in++
130+
time.Sleep(PoolInterval)
130131

131132
} else {
132133
fmt.Println("numer komenty ", in, " jest za duzy zrobie to w nastepnym cyklu")
@@ -136,9 +137,9 @@ func main() {
136137

137138
}
138139

140+
} else {
141+
send_command(panasonicQuery, PANASONICQUERYSIZE)
139142
}
140-
send_command(panasonicQuery, PANASONICQUERYSIZE)
141-
142143
go func() {
143144
tbool := readSerial(MC, MT)
144145
c1 <- tbool

0 commit comments

Comments
 (0)