[suggestion] SofwareSerial - stopListening function

Hi!

I’ve found some problem with SoftwareSerial with my program.

I’ll write some example (by using parts of my project, so it might not work):

Let’s assume we configured stepper, softwareserial something like this:

SoftwareSerial SerialPort(pHrx, pHtx);

void setup() {
  Serial.println(F("<Arduino is ready>"));
  Serial.println("");

  SerialPort.begin(pHbod);
  SerialPort.listen();

  // set the speed at 60 rpm:
  myStepper.setSpeed(60*mlStep/stepsPerRevolution);

}

and let’s make simple loop for moving stepper:

void loop() {
  myStepper.step(-1);
}

Some would say ok, that should work!, but it does not.

My ph-meter sends data about once per second, and while I’m not reading it at all (i can even comment SerialPort.listen(); part), my stepper slows down once per second.

I needed to do some dirty workaround an my only idea is to do:

    pinMode(pHrx, INPUT);
    
    //read pH value now.
    
    pinMode(pHrx, OUTPUT);

So, here i’m suggesting adding some ‘stop read’ function to SoftwareSerial lib.

Best regards!