Skip to content

Make i2cSetFrequency Error #166

Closed
Closed
@HFRibeiro

Description

@HFRibeiro

i was trying to upgrade the arduino-esp32 component, and i get the following error when trying to execute make:
`
C:/esp32_projects/.../components/arduino/cores/esp32/esp32-hal-i2c.c: In function 'i2cSetFrequency':
C:/esp32_projects/.../components/arduino/cores/esp32/esp32-hal-i2c.c:350:29: error: 'volatile union ' has no member named 'period'
i2c->dev->scl_low_period.period = period;
^
C:/esp32_projects/.../components/arduino/cores/esp32/esp32-hal-i2c.c: In function 'i2cGetFrequency':
C:/esp32_projects/.../components/arduino/cores/esp32/esp32-hal-i2c.c:378:50: error: 'volatile union ' has no member named 'period'
return APB_CLK_FREQ/(i2c->dev->scl_low_period.period+i2c->dev->scl_high_period.period);
^
C:/esp32_projects/.../components/arduino/cores/esp32/esp32-hal-i2c.c:379:1: error: control reaches end of non-void function [-Werror=return-type]

cc1.exe: some warnings being treated as errors
`

I'm using as ESP-IDF component.

What i'm i doing wrong?

Thanks

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