File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 55
55
out_feed = io .get_feed ("touch-1" )
56
56
in_feed = io .get_feed ("touch-2" )
57
57
except AdafruitIO_RequestError :
58
- # if no feed exists, create one
58
+ # if no feed exists, create one and push the first value
59
59
out_feed = io .create_new_feed ("touch-1" )
60
60
in_feed = io .create_new_feed ("touch-2" )
61
61
io .send_data (in_feed ["key" ], float (abs ((ANGLE_MAX - ANGLE_MIN )/ 2 )))
68
68
out_feed = io .get_feed ("touch-2" )
69
69
in_feed = io .get_feed ("touch-1" )
70
70
except AdafruitIO_RequestError :
71
- # if no feed exists, create one
71
+ # if no feed exists, create one and push the first value
72
72
out_feed = io .create_new_feed ("touch-2" )
73
73
in_feed = io .create_new_feed ("touch-1" )
74
74
io .send_data (in_feed ["key" ], float (abs ((ANGLE_MAX - ANGLE_MIN )/ 2 )))
You can’t perform that action at this time.
0 commit comments