From b464258a9c9ca73aa8b2db98fc32c75191d7af74 Mon Sep 17 00:00:00 2001 From: Terje Io Date: Wed, 18 Dec 2024 06:07:31 +0100 Subject: [PATCH] fix for issue #130, broken pins report --- main/driver.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/driver.c b/main/driver.c index 11fbb2b..d4d57e7 100644 --- a/main/driver.c +++ b/main/driver.c @@ -2747,7 +2747,7 @@ static void settings_changed (settings_t *settings, settings_changed_flags_t cha static void enumeratePins (bool low_level, pin_info_ptr pin_info, void *data) { - static xbar_t pin = {0}; + static xbar_t pin = {}; uint32_t i, id = 0; @@ -2781,6 +2781,8 @@ static void enumeratePins (bool low_level, pin_info_ptr pin_info, void *data) periph_signal_t *ppin = periph_pins; + pin.port = NULL; + if(ppin) do { pin.id = id++; pin.pin = ppin->pin.pin; @@ -3266,7 +3268,7 @@ bool driver_init (void) #else hal.info = "ESP32"; #endif - hal.driver_version = "241215"; + hal.driver_version = "241218"; hal.driver_url = GRBL_URL "/ESP32"; #ifdef BOARD_NAME hal.board = BOARD_NAME;