From ec4ce66bccdcfc9bb6d25d2acdf788ce6945756e Mon Sep 17 00:00:00 2001 From: George Ruinelli Date: Tue, 25 Oct 2022 13:49:44 +0200 Subject: [PATCH] . --- code/components/jomjol_helper/Helper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/components/jomjol_helper/Helper.cpp b/code/components/jomjol_helper/Helper.cpp index 0236bb7f..fe1653bc 100644 --- a/code/components/jomjol_helper/Helper.cpp +++ b/code/components/jomjol_helper/Helper.cpp @@ -725,8 +725,8 @@ string RundeOutput(double _in, int _anzNachkomma) string getMac(void) { - uint8_t *macInt; - char macFormated[6*2 + 5 + 1]; + uint8_t macInt[6]; + char macFormated[6*2 + 5 + 1]; // AA:BB:CC:DD:EE:FF esp_read_mac(macInt, ESP_MAC_WIFI_STA); sprintf(macFormated, "%02X:%02X:%02X:%02X:%02X:%02X", macInt[0], macInt[1], macInt[2], macInt[3], macInt[4], macInt[5]);