Skip to content

Commit 293bed9

Browse files
author
Nathan Seidle
committed
Update comments
1 parent e444b9a commit 293bed9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libraries/SoftwareSerial/src/SoftwareSerial.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
SoftwareSerial *ap3_active_softwareserial_handle = 0;
3939

4040
//Uncomment to enable debug pulses and Serial.prints
41-
#define DEBUG
41+
//#define DEBUG
4242

4343
#ifdef DEBUG
4444
#define SS_DEBUG_PIN 9
@@ -77,13 +77,14 @@ void SoftwareSerial::begin(uint32_t baudRate)
7777
void SoftwareSerial::listen()
7878
{
7979
if (ap3_active_softwareserial_handle != NULL)
80-
ap3_active_softwareserial_handle->stopListening(); //temp
80+
ap3_active_softwareserial_handle->stopListening(); //Gracefully shut down previous instance
8181

82-
//change handle to point to new PCI
82+
//Point to new instance's cmpr7 ISR
8383
ap3_active_softwareserial_handle = this;
8484

8585
lastBitTime = 0; //Reset for next byte
8686

87+
//Attach this instance RX pin to PCI
8788
attachInterruptArg(digitalPinToInterrupt(_rxPin), _software_serial_isr, (void *)this, CHANGE);
8889
}
8990

0 commit comments

Comments
 (0)