espressif / esp-now

A connectionless Wi-Fi communication protocol
Apache License 2.0
526 stars 93 forks source link

ESP-NOW won't build for target esp32c6 (AEGHB-534) #107

Closed Teesmo closed 5 months ago

Teesmo commented 8 months ago

OS - Ubuntu 23.10 IDF - release/v5.1 Development board - ESP32-C6-DevkitM-1 v1.0

When I try to build code for the example:

esp-now/examples/control

I get the error :

error: 'wifi_pkt_rx_ctrl_t' {aka 'esp_wifi_rxctrl_t'} has no member named 'secondary_channel'
  263 |              rx_ctrl->secondary_channel, espnow_data->size, espnow_data->payload,
      |                     ^~

I have pulled the latest version of my release of the IDF (v5.1), and have also updated the submodules.

lhespress commented 8 months ago

@Teesmo Please git apply the patch as the attachment and check again. support_esp32c6.zip

lhespress commented 8 months ago

@Teesmo The master branch has supported it, please update and check again.

Teesmo commented 8 months ago

I had already tried the patch, which worked, but I'll now update as recommended, thanks.

lhespress commented 5 months ago

@Teesmo Closing this issue since there has been no update on this. Please feel free to reopen if required.