The self.comport.flush was not doing what i thought it did with some versions
and was infact breaking everything.