File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,6 @@ def receive_sms(self):
449
449
if self ._ri is not None : # poll the RI pin
450
450
if self ._ri .value :
451
451
return False , False
452
-
453
452
if not self ._uart .in_waiting : # otherwise, poll the UART
454
453
return False , False
455
454
Original file line number Diff line number Diff line change 11
11
# Create a serial connection for the FONA connection
12
12
uart = busio .UART (board .TX , board .RX )
13
13
rst = digitalio .DigitalInOut (board .D4 )
14
+ # Ring Indicator (RI) interrupt pin
15
+ ri = digitalio .DigitalInOut (board .D5 )
14
16
15
17
# Use this for FONA800 and FONA808
16
- fona = FONA (uart , rst )
18
+ fona = FONA (uart , rst , ri )
17
19
18
20
# Use this for FONA3G
19
- # fona = FONA3G(uart, rst)
21
+ # fona = FONA3G(uart, rst, ri )
20
22
21
23
# Initialize Network
22
24
while fona .network_status != 1 :
You can’t perform that action at this time.
0 commit comments