Skip to content

Commit

Permalink
Resolve the workaround of #440. (#519)
Browse files Browse the repository at this point in the history
* Resolve the workaround of #440.
  • Loading branch information
banboobee committed Jun 16, 2023
1 parent a272f1d commit 64746c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 0 additions & 10 deletions CHANGELOG.md
Expand Up @@ -4,16 +4,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.4.11] - 2022-06-08
### Added
- w1 and file temperatures will return a battery level of 100 if none found
- Serializes the simultaneous IR/RF commands. (Thanks @banboobee) #520
- +/- controls for light accessory. (Thanks @banboobee) #530
- Sync channel selection when tv is powered on. (Thanks @banboobee) #529
### Fixed
- Fixes log error (Thanks @hypery2k) #606
- Fan speed fixes (Thanks @dnicolson) #592 and #593

## [4.4.12] - 2022-06-08
### Added
- Added tempStepSize to configuration (defaulting to 1) to allow AC units with 0.5 steps (Thanks @nasudon) #570
Expand Down
4 changes: 2 additions & 2 deletions accessories/accessory.js
Expand Up @@ -123,13 +123,13 @@ class BroadlinkRMAccessory extends HomebridgeAccessory {
if (sendCount > 1) {interval = interval || 0.1;}

// Itterate through each hex config in the array
for (let index = 0; index < sendCount; index++) {
for (let index = 0; data && index < sendCount; index++) {
await sendData({ host, hexData: data, log, name, logLevel });

if (interval && index < sendCount - 1) {
// this.intervalTimeoutPromise = delayForDuration(interval);
// await this.intervalTimeoutPromise;
await new Promise(resolve => setTimeout(resolve, interval * 1000));
await new Promise(resolve => setTimeout(resolve, interval * 1000));
}
}
}
Expand Down

0 comments on commit 64746c9

Please sign in to comment.