if(!character){// we've reached the end of the message (string terminated by '\0')
_msg_chunk.char_index=0;
_msg_chunk.chunk|=character<<i*8;
}
if((!character)||(_msg_chunk.char_index==sizeof(_statustext_queue[0]->text))){// we've reached the end of the message (string terminated by '\0' or last character of the string has been processed)
_msg_chunk.char_index=0;// reset index to get ready to process the next message
// add severity which is sent as the MSB of the last three bytes of the last chunk (bits 24, 16, and 8) since a character is on 7 bits