Hello,
I'm wondering if I have a data type mismatch in my code below:
In this piece of code, Module has been previously declared as a const int, and RxMod has been declared as a int. RxMod is coming in on a serial line as an element in a String array, and it is parsed out into a value. I think that value is actually the ASCII value for the value the RxMod int should be. I tried typecasting it to make the if statement work, but I never seem to be able to branch into the Subroutine() function.
if (char(RxMod) == Module) {
Subroutine();
}