USB Descriptor Rework

This commit is contained in:
PhosphorosVR
2025-08-16 18:52:14 +02:00
parent 9a1f55d012
commit 18a4b73428
4 changed files with 110 additions and 266 deletions

View File

@@ -32,7 +32,7 @@ struct DeviceMode_t : BaseConfigModel {
explicit DeviceMode_t( Preferences *pref) : BaseConfigModel(pref), mode(StreamingMode::AUTO){}
void load() {
int stored_mode = this->pref->getInt("mode", 0);
int stored_mode = this->pref->getInt("mode", 1);
this->mode = static_cast<StreamingMode>(stored_mode);
ESP_LOGI("DeviceMode", "Loaded device mode: %d", stored_mode);
}