Skip to content

Latest commit in the main branch does not compile #12

@microbit-carlos

Description

@microbit-carlos
/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions