-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Use M5STACK_COREBASIC
instead for M5STACK
to avoid confusion
#5008
Conversation
M5STACK_CORE
Rename M5STACK to M5STACK_CORE
#elif defined(M5STACK) | ||
#define HW_VENDOR meshtastic_HardwareModel_M5STACK | ||
#elif defined(M5STACK_CORE) | ||
#define HW_VENDOR meshtastic_HardwareModel_M5STACK_CORE | ||
#elif defined(STATION_G1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This, on the other hand, needs a change to the protobufs :-) meshtastic_HardwareModel_M5STACK_CORE is not defined there, meshtastic_HardwareModel_M5STACK is. Since it's not used anywhere else, you can leave the old value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is the protobufs PR: meshtastic/protobufs#598
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is why M5STACK_COREBASIC
has been defined is protobufs. So we can use M5STACK_COREBASIC
instead for M5STACK
which is a brand and not a model to avoid confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave the hardware enum as it is, it's not showing up anywhere in writing. more like a macro for code...
M5STACK
to avoid confusion.
M5STACK
to avoid confusion.M5STACK_COREBASIC
instead for M5STACK
to avoid confusion.
M5STACK_COREBASIC
instead for M5STACK
to avoid confusion.M5STACK_COREBASIC
instead for M5STACK
to avoid confusion
sorry, corebasic is not core. The original support was made for the 2018 M5Stack Core. And this is what constitutes "M5STACK = 42". All other newer devices can be catered for and we can change the macros at will, but please don't discontinue use of slot 42 as this would be a breaking change AND waste. Please change this PR in a way that it leaves the existing support functional and adds the new devices. |
Thanks for the explanation |
We can use
M5STACK_COREBASIC
instead forM5STACK
which is a brand and not a model to avoid confusion.M5STACK_COREBASIC = 77;
In fact, it's clear that some users have tried to use the M5Stack variant with a M5Stack Core2 or CoreS3 module.