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 5555 out_feed = io .get_feed ("touch-1" )
5656 in_feed = io .get_feed ("touch-2" )
5757 except AdafruitIO_RequestError :
58- # if no feed exists, create one
58+ # if no feed exists, create one and push the first value
5959 out_feed = io .create_new_feed ("touch-1" )
6060 in_feed = io .create_new_feed ("touch-2" )
6161 io .send_data (in_feed ["key" ], float (abs ((ANGLE_MAX - ANGLE_MIN )/ 2 )))
6868 out_feed = io .get_feed ("touch-2" )
6969 in_feed = io .get_feed ("touch-1" )
7070 except AdafruitIO_RequestError :
71- # if no feed exists, create one
71+ # if no feed exists, create one and push the first value
7272 out_feed = io .create_new_feed ("touch-2" )
7373 in_feed = io .create_new_feed ("touch-1" )
7474 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