Skip to content

GPIOs get re-init during software restarts #7041

@everslick

Description

@everslick

I suggest to remove the lines:

  for (int i = 0; i <= 5; ++i) {
    pinMode(i, INPUT);
  }
  // pins 6-11 are used for the SPI flash interface
  for (int i = 12; i <= 16; ++i) {
    pinMode(i, INPUT);
  }

in:

extern void initPins() {

or maybe check the reset reason and only init the pins if resetInfo.reason == REASON_DEFAULT_RST ?

opinions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions