Fix syntax errors in #ifdef

Simply fix stupid syntax errors and one warning in SERIAL_PROTOCOLPG