Closed catarial closed 2 months ago
Changes to fleet logs compiled and ran. I couldn't verify if it shows in the actual phone log but it shows in the Xcode log.
Got transition T_VISIT_ENDED in state STATE_WAITING_FOR_TRIP_START with fleet mode, ignoring, no beacon found
DEBUG: Got transition T_VISIT_ENDED in state STATE_WAITING_FOR_TRIP_START with fleet mode, ignoring, no beacon found
🥳 Congratulations to @catarial for the first merge 🎉
Unwanted trips where there is no BLE beacon are happening on iPhone when using a fleet server. This is caused by not checking for fleet mode when receiving a VISIT_ENDED transition.
This can be tested by using an opcode for a fleet server then forcing a transition into VISIT_ENDED. In the unpatched code this triggers a trip start.
Log showing trip start:
This was fixed by simply ignoring a VISIT_ENDED transition for fleet mode.
Log after patch, trip doesn't start: