소스 검색

explicitly set wifi mode on start - crash or reset during setup retains state

etisab 10 년 전
부모
커밋
6ae2087953
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      rebuild/main.lua

+ 1 - 0
rebuild/main.lua

@@ -92,6 +92,7 @@ function debounce(delay, func)
   end
 end
 
+wifi.setmode(wifi.STATION)
 handle_short_press = debounce(3000000, handle_short_press) --3 seconds
 gpio.mode(button_pin, gpio.INT, gpio.FLOAT)
 gpio.trig(button_pin, "both", debounce(50000, handle_button_flip)) --50 ms