Skip to content

RMT SetCarrier duty cycle fix #2316

Closed
Closed
@MarkLogiCom

Description

@MarkLogiCom

Board: ESP32 Dev Module
Core Installation/update date: 9 Jan 2019
IDE name: Platform.io
Flash Frequency: 40Mhz?
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Windows 10

I had issues trying to set the duty cycle of the RMT carrier, looks like a copy and paste bug in the Arduino framework.
"\arduino-esp32\cores\esp32\esp32-hal-rmt.c"

bool rmtSetCarrier(rmt_obj_t* rmt, bool carrier_en, bool carrier_level, uint32_t low, uint32_t high)
{
:
RMT.carrier_duty_ch[channel].low = low;
RMT.carrier_duty_ch[channel].low = high;
:
}
The second .low should be .high - then it works fine.
Thanks for providing the RMT module, saved me a heap of time.
Mark

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions