Skip to content

Commit

Permalink
Merge pull request #169 from ezloteam/development
Browse files Browse the repository at this point in the history
fix cmd 99 printing partially issue.
  • Loading branch information
lomasSE89 authored Aug 26, 2024
2 parents a0df3cf + ca9e9a5 commit d527c51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ezlopi-main/ezlopi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ static void __blinky(void *pv)
TRACE_W("Heap Watermark: %d B %.4f KB", watermark_heap, watermark_heap / 1024.0);
TRACE_I("----------------------------------------------");

char cmd99_str[50] = {0};
snprintf(cmd99_str, 50, "{\"cmd\":99,\"free_heap\":%d,\"heap_watermark\":%d}", free_heap, watermark_heap);
char cmd99_str[100] = {0};
snprintf(cmd99_str, 100, "{\"cmd\":99,\"free_heap\":%d,\"heap_watermark\":%d}", free_heap, watermark_heap);
EZPI_SERV_uart_tx_data(strlen(cmd99_str), (uint8_t *)cmd99_str);

if (free_heap <= (10 * 1024))
Expand Down
5 changes: 3 additions & 2 deletions sdkconfig.esp32s2.4mb
Original file line number Diff line number Diff line change
Expand Up @@ -153,20 +153,21 @@ CONFIG_PARTITION_TABLE_MD5=y
# EzloPi User Config
#
# CONFIG_EZPI_HEAP_ENABLE is not set
CONFIG_EZPI_DEV_TYPE_TEST=y
# CONFIG_EZPI_DEV_TYPE_TEST is not set
CONFIG_EZPI_UTIL_TRACE_EN=y
# CONFIG_EZPI_BLE_ENABLE is not set
CONFIG_EZPI_ENABLE_WIFI=y
CONFIG_EZPI_ENABLE_OTA=y
CONFIG_EZPI_SERV_MDNS_EN=y
CONFIG_EZPI_ENABLE_PING=y
# CONFIG_EZPI_ENABLE_PING is not set
CONFIG_EZPI_ENABLE_UART_PROVISIONING=y
CONFIG_EZPI_LOCAL_WEBSOCKET_SERVER=y
CONFIG_EZPI_WEBSOCKET_CLIENT=y
CONFIG_EZPI_CORE_STATIC_BUFFER_SIZE=10240
CONFIG_EZPI_SERV_ENABLE_MESHBOTS=y
CONFIG_EZPI_SERV_ENABLE_MODES=y
# CONFIG_EZPI_ENABLE_LED_INDICATOR is not set
# CONFIG_EZPI_ENABLE_CAPTIVE_PORTAL is not set

#
# EzloPi mDNS config
Expand Down

0 comments on commit d527c51

Please sign in to comment.