Enhance device activation and OTA update process

- Add support for device activation with audio feedback
- Refactor OTA update flow to include activation code handling
- Update asset management for localized sound resources
- Improve error handling and device state management
- Reorganize binary asset includes and CMake configuration
This commit is contained in:
Terrence
2025-02-16 06:59:19 +08:00
parent 14a89cae33
commit 3a71c1e895
39 changed files with 220 additions and 86 deletions

View File

@@ -151,8 +151,12 @@ void SingleLed::OnStateChanged() {
SetColor(0, DEFAULT_BRIGHTNESS, 0);
StartContinuousBlink(100);
break;
case kDeviceStateActivating:
SetColor(0, DEFAULT_BRIGHTNESS, 0);
StartContinuousBlink(500);
break;
default:
ESP_LOGE(TAG, "Invalid led strip event: %d", device_state);
ESP_LOGW(TAG, "Unknown led strip event: %d", device_state);
return;
}
}