PanicFlag changed to uint8_t