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

Align IR_TIME_AVOID_DUPLICATE across irremote_full.ino and irremote.ino and convert to #define #11421

Merged
merged 4 commits into from
Mar 22, 2021

Conversation

kylehase
Copy link

@kylehase kylehase commented Mar 22, 2021

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:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works on Tasmota core ESP8266 V.2.7.4.9
  • The code change is tested and works with core ESP32 V.1.0.5
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

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.
Copy link
Contributor

@ascillato ascillato left a 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

const uint32_t IR_TIME_AVOID_DUPLICATE = 500; // Milliseconds

#ifndef IR_TIME_AVOID_DUPLICATE
#define IR_TIME_AVOID_DUPLICATE = 50 // Milliseconds
Copy link
Contributor

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

const uint32_t IR_TIME_AVOID_DUPLICATE = 50; // Milliseconds

#ifndef IR_TIME_AVOID_DUPLICATE
#define IR_TIME_AVOID_DUPLICATE = 50 // Milliseconds
Copy link
Contributor

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

@kylehase kylehase closed this Mar 22, 2021
@kylehase kylehase reopened this Mar 22, 2021
Copy link
Author

@kylehase kylehase left a 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

@kylehase kylehase marked this pull request as ready for review March 22, 2021 04:53
@s-hadinger
Copy link
Collaborator

Good idea. Thanks.

@arendst arendst merged commit 25619fd into arendst:development Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants