Skip to content

Commit

Permalink
Fixed Rmaker OTA crash issue espressif#5420
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketwadekar committed Sep 12, 2022
1 parent 3f69bcf commit 88e9449
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/RainMaker/src/RMaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Node RMakerClass::initNode(const char *name, const char *type)

esp_err_t RMakerClass::start()
{
err = esp_rmaker_start();
err = esp_rmaker_start();
if(err != ESP_OK){
log_e("ESP RainMaker core task failed");
}
Expand Down Expand Up @@ -106,6 +106,7 @@ esp_err_t RMakerClass::enableOTA(ota_type_t type, const char *cert)
{
esp_rmaker_ota_config_t ota_config;
ota_config.server_cert = cert;
ota_config.ota_cb = NULL;
err = esp_rmaker_ota_enable(&ota_config, type);
if(err != ESP_OK) {
log_e("OTA enable failed");
Expand Down

0 comments on commit 88e9449

Please sign in to comment.