36#include "comm_drv_registry.h"
38bool StopAndRemoveCommDriver(std::string ident, NavAddr::Bus _bus) {
39 auto& registry = CommDriverRegistry::GetInstance();
40 const std::vector<DriverPtr>& drivers = registry.GetDrivers();
41 DriverPtr target_driver = FindDriver(drivers, ident, _bus);
43 if (!target_driver)
return false;
48 registry.Deactivate(target_driver);
56wxString ProcessNMEA4Tags(wxString& msg) {
57 int idxFirst = msg.Find(
'\\');
59 if (wxNOT_FOUND == idxFirst)
return msg;
61 if (idxFirst < (
int)msg.Length() - 1) {
62 int idxSecond = msg.Mid(idxFirst + 1).Find(
'\\') + 1;
63 if (wxNOT_FOUND != idxSecond) {
64 if (idxSecond < (
int)msg.Length() - 1) {
66 return msg.Mid(idxSecond + 1);