Switch case and software serial

Here is the code. Sorry its just cut and paste, computer is acting up so using tablet....

Thanks in advance... any help would be great :slight_smile:

int SerialinByte = 0;
// Software Serial Setup
SoftwareSerial mySerial(10, 11); // RX, TX

void setup() {
// initialize serial communication (control):
Serial.begin(9600);
// initialize Relay Pins:
int Ignition = 4;
int Battery = 5;

mySerial.begin(38400);
}
void loop() {
if (Serial.available() > 0) {
int inByte = Serial.read();
switch (inByte) {
case 'a':
digitalWrite(4, HIGH);
break;
case 'b':
digitalWrite(5, HIGH);
break;
case 'A':
digitalWrite(4, LOW);
break;
case 'B':
digitalWrite(5, LOW);
break;
case 'c':
VIPassing();
break;

default:
digitalWrite(4, LOW);
digitalWrite(5, LOW);
}
}
}
void VIPassing() // pass just data to the unit
{
do
{
SerialinByte = Serial.read();

if (mySerial.available())
{
Serial.write(mySerial.read());
}

if (Serial.available())
{
mySerial.write(Serial.read());
}

}
while (SerialinByte != 33);
}