Version using RawSerial instead of Serial (thread safe)

Fork of FONA_Cellphone_Library by Dream Team

Revision:
2:f292ec14f01e
Parent:
1:df5de663fad8
Child:
3:7916fb0cc4b0
--- a/Adafruit_FONA.cpp	Fri Jun 30 07:19:42 2017 +0000
+++ b/Adafruit_FONA.cpp	Fri Jun 30 09:27:36 2017 +0000
@@ -33,7 +33,7 @@
 
 bool Adafruit_FONA::begin(int baudrate) {
     mySerial.baud(baudrate); //set the baud rate of the fona serial connection
-    //mySerial.attach(this, &Adafruit_FONA::onSerialDataReceived, Serial::RxIrq); //attached onSerialDataReceived as Serial receive interrupt
+    mySerial.attach(this, &Adafruit_FONA::onSerialDataReceived, Serial::RxIrq); //attached onSerialDataReceived as Serial receive interrupt
     
     // INIT Reboot process
     _rstpin = HIGH;