Fix https://github.com/faucamp/python-gsmmodem/issues/39