andrethemac / L76GLNSV4

MicroPython library for quectel L76 glnss gps on pycom pytrack
MIT License
18 stars 16 forks source link

Fix timeout issue #13 #14

Closed kbondarev closed 2 years ago

kbondarev commented 4 years ago

When the get_fix() function is called the self.chrono is being reset within the _read_message() function. This causes the timeout not to work as expected.

This pull request fixes this issue by removing the global instance of self.chrono and using separate instances of the Timer.Chrono() object inside each of the functions (get_fix() and _read_message())