File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ def start_measurement():
28
28
29
29
while loop_run :
30
30
perf .start ()
31
+ pycom .heartbeat (False )
32
+ pycom .rgbled (0x001100 )
31
33
# Measure all enabled sensors
32
34
data = {}
33
35
if ds1820 is not None :
@@ -78,7 +80,7 @@ def enable_ap(pin=None):
78
80
loop_run = False
79
81
getattr (_wm , 'enable_ap' )()
80
82
81
- button_s1 = machine .Pin ('P2 ' ,
83
+ button_s1 = machine .Pin ('P10 ' ,
82
84
mode = machine .Pin .IN ,
83
85
pull = machine .Pin .PULL_UP )
84
86
button_s1 .callback (machine .Pin .IRQ_RISING ,
@@ -90,8 +92,6 @@ def enable_ap(pin=None):
90
92
91
93
_csv = logger .csv
92
94
print ("Starting..." )
93
- pycom .heartbeat (False )
94
- pycom .rgbled (0x001100 )
95
95
try :
96
96
if _config .data ['networking' ]['wlan' ]['enabled' ]:
97
97
_wm .enable_client ()
@@ -108,6 +108,7 @@ def enable_ap(pin=None):
108
108
else :
109
109
start_measurement ()
110
110
else :
111
+ _wlan .deinit ()
111
112
start_measurement ()
112
113
except :
113
114
machine .reset ()
You can’t perform that action at this time.
0 commit comments