MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.28k stars 19.23k forks source link

[BUG?] M43 stops analog channels #14718

Closed GMagician closed 5 years ago

GMagician commented 5 years ago

That's may not be a bug because I saw it in AGCM4 that is not currently supported. M43 uses analogRead to read analog value when an analog pin is scanned. This function, in SAMD51, will disable ADC after it has been read. This will stop DMA (that I'm currently using) and hence all analog readings.

I'm wondering if it is possible to add an adc_init call on M43 exit to restore status and if this may be dangerous for other boards (also STM32 uses DMA and may be locked too).

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.