Update serial_core.c