diff --git a/firmware/Makefile b/firmware/Makefile index d31153e..6cfa63e 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -21,6 +21,11 @@ clean: rm sdkconfig make setup +ff: + make test_port + idf.py -p $(PORT) erase-flash + make flash monitor + all: flash monitor .PHONY: test_port setup compile flash monitor clean all diff --git a/firmware/main/apps/wifi_analyzer/screens/wifi_screens_module.c b/firmware/main/apps/wifi_analyzer/screens/wifi_screens_module.c index a9e159f..c9112a6 100644 --- a/firmware/main/apps/wifi_analyzer/screens/wifi_screens_module.c +++ b/firmware/main/apps/wifi_analyzer/screens/wifi_screens_module.c @@ -29,6 +29,8 @@ void wifi_screens_module_display_sniffer_cb(sniffer_runtime_t* sniffer) { OLED_DISPLAY_INVERT); oled_screen_display_text(channel_str, x_offset, pkts_offset + 1, OLED_DISPLAY_INVERT); + free(packets_str); + free(channel_str); } else { ESP_LOGI(TAG_WIFI_SCREENS_MODULE, "sniffer task stopped"); }