Files
SlimeVR-Tracker-ESP/src/status/Status.cpp
Uriel 0b882db74f Enforce clang-format on the repo (#355)
* Enforce clang-format on the repo

* improve CI config

* fix build error

* undo src format

* apply format by hand

* fix last one

* fix build error

* wat
2024-11-08 19:23:18 +02:00

23 lines
440 B
C++

#include "Status.h"
namespace SlimeVR {
namespace Status {
const char* statusToString(Status status) {
switch (status) {
case LOADING:
return "LOADING";
case LOW_BATTERY:
return "LOW_BATTERY";
case IMU_ERROR:
return "IMU_ERROR";
case WIFI_CONNECTING:
return "WIFI_CONNECTING";
case SERVER_CONNECTING:
return "SERVER_CONNECTING";
default:
return "UNKNOWN";
}
}
} // namespace Status
} // namespace SlimeVR