-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Align IR_TIME_AVOID_DUPLICATE across irremote_full.ino and irremote.ino and convert to #define #11421
Conversation
Reduce IR_TIME_AVOID_DUPLICATE to 50ms which was fixed in xdrv_05_irremote_full.ino in PR arendst#9969 but not here. Converted IR_TIME_AVOID_DUPLICATE from const to #define to enable override in the config override file.
Convert IR_TIME_AVOID_DUPLICATE from const to #define to enable override in the config override file.
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.
Please, delete the = on the #define
tasmota/xdrv_05_irremote.ino
Outdated
const uint32_t IR_TIME_AVOID_DUPLICATE = 500; // Milliseconds | ||
|
||
#ifndef IR_TIME_AVOID_DUPLICATE | ||
#define IR_TIME_AVOID_DUPLICATE = 50 // Milliseconds |
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.
It is not needed the equal sign in a #define
Just delete the sign to pass the CI tests
tasmota/xdrv_05_irremote_full.ino
Outdated
const uint32_t IR_TIME_AVOID_DUPLICATE = 50; // Milliseconds | ||
|
||
#ifndef IR_TIME_AVOID_DUPLICATE | ||
#define IR_TIME_AVOID_DUPLICATE = 50 // Milliseconds |
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.
It is not needed the equal sign in a #define
Just delete the sign to pass the CI tests
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.
Removed = signs in #define
Good idea. Thanks. |
Description:
Reduced IR_TIME_AVOID_DUPLICATE to 50ms in xdrv_05_irremote_full.ino, matching xdrv_05_irremote_full.ino which was fixed in PR #9969 but not here.
Converted IR_TIME_AVOID_DUPLICATE from const to #define to enable override in the config override file.
Related issue (if applicable): #9969
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass