Skip to content

Commit

Permalink
fix for issue #130, broken pins report
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeio committed Dec 18, 2024
1 parent ddd99a1 commit b464258
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b464258

Please sign in to comment.