Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 4d3322a

Browse files
author
iwahdan88
committed
Fix compilation issue
1 parent 8f85552 commit 4d3322a

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

esp32/mods/modbt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ static void gattc_events_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc
457457
case ESP_GATTC_CLOSE_EVT:
458458
case ESP_GATTC_DISCONNECT_EVT:
459459
close_connection(p_data->close.conn_id);
460+
bt_obj.busy = false;
460461
break;
461462
default:
462463
break;

esp32/mods/modlte.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ extern TaskHandle_t svTaskHandle;
104104
#if defined(FIPY)
105105
extern TaskHandle_t xLoRaTaskHndl;
106106
extern TaskHandle_t xSigfoxTaskHndl;
107-
//extern TaskHandle_t xMeshTaskHndl;
108107
#endif
109108
extern TaskHandle_t xLTETaskHndl;
110109

@@ -350,7 +349,6 @@ static void TASK_LTE_UPGRADE(void *pvParameters){
350349
#if defined(FIPY)
351350
vTaskSuspend(xLoRaTaskHndl);
352351
vTaskSuspend(xSigfoxTaskHndl);
353-
// vTaskSuspend(xMeshTaskHndl);
354352
#endif
355353
vTaskSuspend(xLTETaskHndl);
356354

esp32/mods/modpycom.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include "py/mpconfig.h"
1111
#include "py/obj.h"
12+
#include "py/objstr.h"
1213
#include "py/runtime.h"
1314
#include "mperror.h"
1415
#include "updater.h"
@@ -215,7 +216,7 @@ STATIC mp_obj_t mod_pycom_nvs_get (mp_obj_t _key) {
215216

216217
if(esp_err == ESP_OK) {
217218
//do not count the terminating \0
218-
ret = mp_obj_new_str(value_string, value-1);
219+
ret = mp_obj_new_str(value_string, value-1, false);
219220
m_free(value_string);
220221
}
221222
m_free(value_string);

esp32/mods/moducrypto.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#include "hwcrypto/aes.h"
1818
#include "hwcrypto/sha.h"
1919
#include "mpexception.h"
20+
#include "mbedtls/entropy.h"
21+
#include "mbedtls/pk.h"
22+
#include "mbedtls/ctr_drbg.h"
2023

2124
/******************************************************************************
2225
DEFINE PRIVATE TYPES

0 commit comments

Comments
 (0)