ESP_NOW & esptool 4.6
Posted: Tue Jun 04, 2024 12:59 pm
Compiling any ESPNOW code with new compiler esptool 4.6 returns the error below with all examples, new & old code, all of which compile OK with esptool 5.4.1
Compilation error: invalid conversion from 'void (*)(const uint8_t*, const uint8_t*, int)' {aka 'void (*)(const unsigned char*, const unsigned char*, int)'} to 'esp_now_recv_cb_t' {aka 'void (*)(const esp_now_recv_info*, const unsigned char*, int)'} [-fpermissive]
All fail on line in setup : esp_now_register_recv_cb(OnDataRecv);
How do I revert back to esptool 5.4.1 while this is corrected? Putting 4.6 in the rubbish bin didn't work, presumably because its addressed somewhere specifically!
Compilation error: invalid conversion from 'void (*)(const uint8_t*, const uint8_t*, int)' {aka 'void (*)(const unsigned char*, const unsigned char*, int)'} to 'esp_now_recv_cb_t' {aka 'void (*)(const esp_now_recv_info*, const unsigned char*, int)'} [-fpermissive]
All fail on line in setup : esp_now_register_recv_cb(OnDataRecv);
How do I revert back to esptool 5.4.1 while this is corrected? Putting 4.6 in the rubbish bin didn't work, presumably because its addressed somewhere specifically!