Update check

This commit is contained in:
Pierre HUBERT 2024-08-29 00:27:06 +02:00
parent 31f4203c43
commit 9e24587541

View File

@ -145,7 +145,7 @@ void app_main(void)
// Retrieve device certificate if missing
ESP_LOGI(TAG, "Check device certificate");
if (storage_get_dev_cert(NULL) == 0)
if (storage_get_dev_cert(NULL) < 2)
{
char *dev_cert = secure_api_get_dev_certificate();
if (!dev_cert)