mirror of
https://github.com/esphome/esphome.git
synced 2026-06-01 17:57:37 +08:00
[esp32_hosted][fingerprint_grow] Fix two remaining ESP32 toolchain warnings (#16442)
This commit is contained in:
@@ -121,7 +121,7 @@ void Esp32HostedUpdate::setup() {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGW(TAG, "Invalid app description magic word: 0x%08" PRIx32 " (expected 0x%08" PRIx32 ")",
|
ESP_LOGW(TAG, "Invalid app description magic word: 0x%08" PRIx32 " (expected 0x%08" PRIx32 ")",
|
||||||
app_desc->magic_word, ESP_APP_DESC_MAGIC_WORD);
|
app_desc->magic_word, static_cast<uint32_t>(ESP_APP_DESC_MAGIC_WORD));
|
||||||
this->state_ = update::UPDATE_STATE_NO_UPDATE;
|
this->state_ = update::UPDATE_STATE_NO_UPDATE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -206,6 +206,7 @@ uint8_t FingerprintGrowComponent::save_fingerprint_() {
|
|||||||
break;
|
break;
|
||||||
case ENROLL_MISMATCH:
|
case ENROLL_MISMATCH:
|
||||||
ESP_LOGE(TAG, "Scans do not match");
|
ESP_LOGE(TAG, "Scans do not match");
|
||||||
|
[[fallthrough]];
|
||||||
default:
|
default:
|
||||||
return this->data_[0];
|
return this->data_[0];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user