update serial port callback