diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index b2d769725..0afc6e782 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -264,7 +264,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Save memory usage change report as artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 with: name: sketches-reports path: sketches-reports diff --git a/cores/arduino/wiring_analog.c b/cores/arduino/wiring_analog.c index 2476e0105..fca177e7a 100644 --- a/cores/arduino/wiring_analog.c +++ b/cores/arduino/wiring_analog.c @@ -129,10 +129,6 @@ int analogRead(pin_size_t pin) { uint32_t valueRead = 0; - if (pin < A0) { - pin += A0; - } - pinPeripheral(pin, PIO_ANALOG); // Disable DAC, if analogWrite() was used previously to enable the DAC