The "if" statement is executed a microsecond or so after msg1 is sent off to be printed.
How many characters do you think might be in the serial input buffer, for serialParseFloat() to interpret?
I recommend the Serial Input Basics tutorial.
The "if" statement is executed a microsecond or so after msg1 is sent off to be printed.
How many characters do you think might be in the serial input buffer, for serialParseFloat() to interpret?
I recommend the Serial Input Basics tutorial.