- Create `Include/` folder for all main projects - Fix some issues here and there (found while moving things) - All includes are now in `Tactility/` subfolder and must be included with that prefix. This fixes issues with clashing POSIX headers (e.g. `<semaphore.h>` versus Tactility's `Semaphore.h`)
25 lines
633 B
C++
25 lines
633 B
C++
#include "Tactility/service/wifi/Wifi.h"
|
|
|
|
namespace tt::service::wifi {
|
|
|
|
const char* radioStateToString(RadioState state) {
|
|
switch (state) {
|
|
using enum RadioState;
|
|
case OnPending:
|
|
return TT_STRINGIFY(OnPending);
|
|
case On:
|
|
return TT_STRINGIFY(On);
|
|
case ConnectionPending:
|
|
return TT_STRINGIFY(ConnectionPending);
|
|
case ConnectionActive:
|
|
return TT_STRINGIFY(ConnectionActive);
|
|
case OffPending:
|
|
return TT_STRINGIFY(OnPending);
|
|
case Off:
|
|
return TT_STRINGIFY(Off);
|
|
}
|
|
tt_crash("not implemented");
|
|
}
|
|
|
|
}
|