Update serial.c

Suggested change to RFDesign. Decided to put suggested change into GitHub.

Does this improve the code, or have I made a mistake?