1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-28 16:12:24 +01:00
This commit is contained in:
J. Nick Koston
2025-09-27 01:52:17 -05:00
parent 91adbc2466
commit 8b98ed16e9

View File

@@ -789,6 +789,10 @@ size_t ESPHomeOTAComponent::get_auth_hex_size_() const {
#endif #endif
#ifdef USE_OTA_MD5 #ifdef USE_OTA_MD5
return MD5_HEX_SIZE; return MD5_HEX_SIZE;
#else
#ifndef USE_OTA_SHA256
#error "Either USE_OTA_MD5 or USE_OTA_SHA256 must be defined when USE_OTA_PASSWORD is enabled"
#endif
#endif #endif
} }