Skip to content

Commit 33948c0

Browse files
committed
fixup! refactor: use a set- and clear-pinmask
1 parent fc934fa commit 33948c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/IRsend.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ IRsend::IRsend(uint16_t IRsendPin, bool inverted, bool use_modulation)
5151
/// i.e. If not, assume a 100% duty cycle. Ignore attempts to change the
5252
/// duty cycle etc.
5353
/// @param[in] w1ts_mask mask for setting GPIOs for a logical 1 output.
54-
/// @param[in] w1tc_mask mask for clearing GPIOs for a logical 1 output. Required if some outputs are inverted.
55-
/// command.
54+
/// @param[in] w1tc_mask mask for clearing GPIOs for a logical 1 output.
55+
/// Required if some outputs are inverted.
5656
IRsend::IRsend(bool use_modulation, int64_t w1ts_mask, uint64_t w1tc_mask) :
5757
periodOffset(kPeriodOffset), _irPinMaskEnabled(true) {
5858
IRpin = static_cast<int32_t>(w1ts_mask);
@@ -71,7 +71,8 @@ IRsend::IRsend(bool use_modulation, int64_t w1ts_mask, uint64_t w1tc_mask) :
7171
/// Set a new GPIO output pin mask for parallel output.
7272
/// This call has no effect if a normal single GPIO output pin is used.
7373
/// @param[in] w1ts_mask mask for setting GPIOs for a logical 1 output.
74-
/// @param[in] w1tc_mask mask for clearing GPIOs for a logical 1 output. Required if some outputs are inverted.
74+
/// @param[in] w1tc_mask mask for clearing GPIOs for a logical 1 output.
75+
/// Required if some outputs are inverted.
7576
/// @return false if pinmask mode is not enabled.
7677
bool IRsend::setPinMask(uint64_t w1ts_mask, uint64_t w1tc_mask) {
7778
if (!_irPinMaskEnabled) {

0 commit comments

Comments
 (0)