chegewara / EspTinyUSB

ESP32S2 native USB library. Implemented few common classes, like MIDI, CDC, HID or DFU (update).
MIT License
475 stars 70 forks source link

Error compiling sample code (GamedPad) #72

Closed limaomerces closed 2 years ago

limaomerces commented 2 years ago
In file included from c:\Users\Tiago\Documents\Arduino\libraries\EspTinyUSB-master\src\device\msc\flashdisk.cpp:1:
c:\Users\Tiago\Documents\Arduino\libraries\EspTinyUSB-master\src/flashdisk.h:15:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
     bool init(char* path = "/fatfs",char* label = NULL);
                            ^~~~~~~~
c:\Users\Tiago\Documents\Arduino\libraries\EspTinyUSB-master\src\host\common\usb_host.cpp: In member function 'bool USBhost::init(bool)':
c:\Users\Tiago\Documents\Arduino\libraries\EspTinyUSB-master\src\host\common\usb_host.cpp:68:31: error: 'const usb_host_client_config_t' has no non-static data member named 'client_event_callback'
         .max_num_event_msg = 5};
                               ^
Compilation error: exit status 1}

Could this error be fixed?

cojopi commented 2 years ago

PR #75 should have fixed this problem. You should try again updating the library (On Documents\Arduino\libraries\ESP32TinyUSB) with the new changes on Github. Issues #67 and #65 are the same issue as this one.