firmware supports BrickPi2.WaitForSerial() function