Update check
This commit is contained in:
parent
31f4203c43
commit
9e24587541
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user