| 89 | } |
| 90 | |
| 91 | const 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 | |
| 104 | const std::string waybar::modules::Gps::getFixStatusString() const { |
| 105 | switch (gps_data_.fix.status) { |
nothing calls this directly
no outgoing calls
no test coverage detected