MCPcopy Create free account
hub / github.com/Alexays/Waybar / getFixModeString

Method getFixModeString

src/modules/gps.cpp:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91const std::string waybar::modules::Gps::getFixModeString() const {
92 switch (gps_data_.fix.mode) {
93 case MODE_NO_FIX:
94 return "No fix";
95 case MODE_2D:
96 return "2D Fix";
97 case MODE_3D:
98 return "3D Fix";
99 default:
100 return "Disconnected";
101 }
102}
103
104const std::string waybar::modules::Gps::getFixStatusString() const {
105 switch (gps_data_.fix.status) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected