apply end of messages as CRSF
use switch insted of if
use relative import path