stringref

This commit is contained in:
J. Nick Koston
2026-01-09 16:28:21 -10:00
parent 56ced4a403
commit 3dbca6692e
9 changed files with 37 additions and 41 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ climate:
if (preset == "Default Preset") {
ESP_LOGD("test", "Preset is Default Preset");
}
// Log using %.*s format for string_view
ESP_LOGD("test", "Custom preset: %.*s", (int) preset.size(), preset.data());
// Log using %.*s format for StringRef
ESP_LOGD("test", "Custom preset: %.*s", (int) preset.size(), preset.c_str());
}
idle_action:
- logger.log: idle_action