Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] M43 shows no report names on any analog pins #18329

Closed
ellensp opened this issue Jun 16, 2020 · 2 comments
Closed

[BUG] M43 shows no report names on any analog pins #18329

ellensp opened this issue Jun 16, 2020 · 2 comments

Comments

@ellensp
Copy link
Contributor

ellensp commented Jun 16, 2020

Bug Description

M43 shows no report names on any analog pins

My Configurations

just enable PINS_DEBUGGING

Steps to Reproduce

  1. #define PINS_DEBUGGING
  2. compile and upload
  3. Send a M43 at the machine

Expected behavior:

Analog pins should have report names.

Actual behavior:

No analog pins have any names

Additional Information

Noticed this while looking at #17205
as ADC_KEYPAD_PIN was not being listed.

Bug was introduced #16756 in pinsDebug_list.h
The Macro #define ANALOG_OK(PN) ((PN) >= 0 && (PN) < NUM_ANALOG_PINS) was introduced.
But NUM_ANALOG_PINS is not defined anywhere.
Not in Marlin and not in the frameworks.

Each any every analog pin in pinsDebug_list.h uses this ANALOG_OK test, and every single one fails this test resulting in no report name being added.

Looks like it should be
#define ANALOG_OK(PN) ((PN) >= 0 && (PN) < NUM_ANALOG_INPUTS)

@Bob-the-Kuhn was there a reason for this i'm missing?

@bcdiaconu
Copy link

bcdiaconu commented Jun 17, 2020

I have attached a m43 response from a Zonestar P802Qs with ZRIB board and ADCKeys on LCD.
m43_Zonestar_ADCKEYS.txt

ellensp pushed a commit to ellensp/Marlin that referenced this issue Jun 17, 2020
@ellensp ellensp closed this as completed Jun 18, 2020
@github-actions
Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants