Fix unused eventCode variable in EcubeThread