Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest commit in the main branch does not compile #12

Open
microbit-carlos opened this issue Jan 20, 2025 · 0 comments
Open

Latest commit in the main branch does not compile #12

microbit-carlos opened this issue Jan 20, 2025 · 0 comments

Comments

@microbit-carlos
Copy link

/Users/microbit-carlos/workspace/mbef/codal/codal/libraries/codal-circuit-playground/model/CircuitPlayground.cpp: In member function 'void codal::CircuitPlayground::onListenerRegisteredEvent(codal::Event)':
/Users/microbit-carlos/workspace/mbef/codal/codal/libraries/codal-circuit-playground/model/CircuitPlayground.cpp:134:34: error: no matching function for call to 'codal::LIS3DH::update()'
  134 |             accelerometer.update();
      |                                  ^
In file included from /Users/microbit-carlos/workspace/mbef/codal/codal/libraries/codal-core/./inc/drivers/LIS3DH.h:34,
                 from /Users/microbit-carlos/workspace/mbef/codal/codal/libraries/codal-circuit-playground/model/CircuitPlayground.h:45,
                 from /Users/microbit-carlos/workspace/mbef/codal/codal/libraries/codal-circuit-playground/model/CircuitPlayground.cpp:26:
/Users/microbit-carlos/workspace/mbef/codal/codal/libraries/codal-core/./inc/driver-models/Accelerometer.h:214:21: note: candidate: 'virtual int codal::Accelerometer::update(codal::Sample3D)'
  214 |         virtual int update(Sample3D s);
      |                     ^~~~~~
/Users/microbit-carlos/workspace/mbef/codal/codal/libraries/codal-core/./inc/driver-models/Accelerometer.h:214:21: note:   candidate expects 1 argument, 0 provided
make[2]: *** [libraries/codal-circuit-playground/CMakeFiles/codal-circuit-playground.dir/model/CircuitPlayground.cpp.obj] Error 1
make[1]: *** [libraries/codal-circuit-playground/CMakeFiles/codal-circuit-playground.dir/all] Error 2
make: *** [all] Error 2

From commit 829ff82/ PR #10 the change from accelerometer.updateSample() to accelerometer.update(), or perhaps one of the dependencies might need to be updated to match this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant