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):
449449 if self ._ri is not None : # poll the RI pin
450450 if self ._ri .value :
451451 return False , False
452-
453452 if not self ._uart .in_waiting : # otherwise, poll the UART
454453 return False , False
455454
Original file line number Diff line number Diff line change 1111# Create a serial connection for the FONA connection
1212uart = busio .UART (board .TX , board .RX )
1313rst = digitalio .DigitalInOut (board .D4 )
14+ # Ring Indicator (RI) interrupt pin
15+ ri = digitalio .DigitalInOut (board .D5 )
1416
1517# Use this for FONA800 and FONA808
16- fona = FONA (uart , rst )
18+ fona = FONA (uart , rst , ri )
1719
1820# Use this for FONA3G
19- # fona = FONA3G(uart, rst)
21+ # fona = FONA3G(uart, rst, ri )
2022
2123# Initialize Network
2224while fona .network_status != 1 :
You can’t perform that action at this time.
0 commit comments