Nickjgniklu / EM4095

esp32 library for reading and writing rfid chips with the em4095
MIT License
4 stars 2 forks source link

Build error: RecordFromAntenna(...) #4

Open vzahradnik opened 4 months ago

vzahradnik commented 4 months ago

The declaration of function has changed resulting in compilation error:

.pio/libdeps/esp32-c6-devkitc-1/em4095/src/Em4095.cpp:526:6: error: no declaration matches 'void Em4095::RecordFromAntenna(uint)'
  526 | void Em4095::RecordFromAntenna(uint numberOfBits)
      |      ^~~~~~
In file included from .pio/libdeps/esp32-c6-devkitc-1/em4095/src/Em4095.cpp:2:
.pio/libdeps/esp32-c6-devkitc-1/em4095/src/Em4095.h:55:10: note: candidate is: 'void Em4095::RecordFromAntenna(uint32_t)'
   55 |     void RecordFromAntenna(uint32_t numberOfBits);

Changing uint to uint32_t fixes the issue. Pull request is on its way.

vzahradnik commented 4 months ago

This seems to be fixed in f5f096668cadbc0d7eedd5e88c0dd19fdc5f9f70. However, this library version was still not published. The only workaround is to use the library from the main branch.