The tx_ready_queue is getting reallocated when power cycling the GNSS module. Repeated calls to ubloxGPS::on() and ubloxGPS::off() reveal that there is reallocation of this queue when transitioning to the ON state.
Solution
Check if the tx_ready_queue is already allocated and only allocate it hasn't before.
Problem
The tx_ready_queue is getting reallocated when power cycling the GNSS module. Repeated calls to ubloxGPS::on() and ubloxGPS::off() reveal that there is reallocation of this queue when transitioning to the ON state.
Solution
Check if the tx_ready_queue is already allocated and only allocate it hasn't before.