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

refactor ir_Hitachi #1308

Merged
merged 4 commits into from
Oct 24, 2020
Merged

refactor ir_Hitachi #1308

merged 4 commits into from
Oct 24, 2020

Conversation

siriuslzx
Copy link
Collaborator

By the way, why not spilt the IRFujitsuAC into several classes by model?

@siriuslzx siriuslzx added enhancement Hacktoberfest Hacktoberfest participation labels Oct 24, 2020
@crankyoldgit crankyoldgit self-assigned this Oct 24, 2020
@crankyoldgit crankyoldgit added the hacktoberfest-accepted Marking PRs as accepted for Hacktoberfest. label Oct 24, 2020
Copy link
Owner

@crankyoldgit crankyoldgit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As for why Fujitsu is the way it is:

  1. Legacy / pre-existing code.
  2. It's fairly compact.
  3. They a lot of overlapping code.

i.e. No good reason. ;-)

Other than the typo, this looks fine to me. Fix them and I'll approve.

src/ir_Hitachi.cpp Outdated Show resolved Hide resolved
src/ir_Hitachi.cpp Outdated Show resolved Hide resolved
src/ir_Hitachi.cpp Outdated Show resolved Hide resolved
src/ir_Hitachi.cpp Outdated Show resolved Hide resolved
src/ir_Hitachi.cpp Outdated Show resolved Hide resolved
src/ir_Hitachi.cpp Outdated Show resolved Hide resolved
Comment on lines 1259 to 1232
/// Convert a native fan speed into its stdAc equivalent.
/// Convert a native fan speed into its stdAc equivilant.
/// @param[in] speed The native setting to be converted.
/// @return The stdAc equivalent of the native setting.
/// @return The stdAc equivilant of the native setting.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

equivalent

src/ir_Hitachi.cpp Outdated Show resolved Hide resolved
Comment on lines -1555 to +1524
/// @return The equivalent native horizontal swing position.
/// @return The equivilent native horizontal swing position.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

equivalent

src/ir_Hitachi.cpp Outdated Show resolved Hide resolved
@crankyoldgit crankyoldgit self-requested a review October 24, 2020 13:28
Copy link
Owner

@crankyoldgit crankyoldgit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@siriuslzx siriuslzx merged commit 5e82c21 into crankyoldgit:master Oct 24, 2020
crankyoldgit added a commit that referenced this pull request Nov 13, 2020
_v2.7.12 (20201113)_

**[Bug Fixes]**
- `defaultBits()` returned incorrect result for `PANASONIC_AC` (#1307 #1314)
- Fix LG2 timings and refactor `decodeLG()` (#1298 #1304)

**[Features]**
- Midea: Add support for "Follow Me"/Sensor, Turbo, Light, & Timers (#1318 #1327)
- SharpAc: Add model support for A705 (#1309 #1313)
- Add basic support for Panasonic A/C 32bit/16bit protocol. (#1307 #1316)
- Add support for Elite Screens protocol. (#1306 #1310)
- IRrecvDumpV2+: Add tolerance setting. (#1292)
- Add basic support for the Mirage Protocol. (#1289 #1291)
- Internationalisation Support
  - pt-BR: Add Portuguese/Brazilian support. (#1303)
  - de-DE: Backfill missing strings (#1294)
  - de-DE: update for recent addition of 'tolerance' (#1293)
  - de-DE: Translate root README.md into German (#1297)

**[Misc]**
- refactor ir_LG (#1325)
- refactor ir_Kelvinator (#1317)
- refactor ir_Hitachi (#1308)
- refactor ir_Goodweather (#1295)
- refactor ir_Electra (#1290)
- refactor ir_Daikin (#1288)
- Update Kaysun supported models. (#1322)
- fix typos/spelling mistakes (#1301)
- Add some missing Doxygen class/data-type descriptions. (#1287)
@crankyoldgit crankyoldgit mentioned this pull request Nov 13, 2020
crankyoldgit added a commit that referenced this pull request Nov 13, 2020
_v2.7.12 (20201113)_

**[Bug Fixes]**
- `defaultBits()` returned incorrect result for `PANASONIC_AC` (#1307 #1314)
- Fix `LG2` timings and refactor `decodeLG()` (#1298 #1304)

**[Features]**
- Midea: Add support for "Follow Me"/Sensor, Turbo, Light, & Timers (#1318 #1327)
- SharpAc: Add model support for A705 (#1309 #1313)
- Add basic support for Panasonic A/C 32bit/16bit protocol. (#1307 #1316)
- Add support for Elite Screens protocol. (#1306 #1310)
- IRrecvDumpV2+: Add tolerance setting. (#1292)
- Add basic support for the Mirage Protocol. (#1289 #1291)
- Internationalisation Support
  - `pt-BR`: Add Portuguese/Brazilian support. (#1303)
  - `de-DE`: Backfill missing strings (#1294)
  - `de-DE`: update for recent addition of 'tolerance' (#1293)
  - `de-DE`: Translate root README.md into German (#1297)

**[Misc]**
- refactor ir_LG (#1325)
- refactor ir_Kelvinator (#1317)
- refactor ir_Hitachi (#1308)
- refactor ir_Goodweather (#1295)
- refactor ir_Electra (#1290)
- refactor ir_Daikin (#1288)
- Update Kaysun supported models. (#1322)
- fix typos/spelling mistakes (#1301)
- Add some missing Doxygen class/data-type descriptions. (#1287)
@crankyoldgit
Copy link
Owner

FYI, the changes mentioned above have now been included in the new v2.7.12 release of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Hacktoberfest Hacktoberfest participation hacktoberfest-accepted Marking PRs as accepted for Hacktoberfest.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants