diff --git a/libs/RobotKit/include/RobotController.h b/libs/RobotKit/include/RobotController.h index f62616904e..cf272ee832 100644 --- a/libs/RobotKit/include/RobotController.h +++ b/libs/RobotKit/include/RobotController.h @@ -5,7 +5,6 @@ #pragma once #include "BLEKit.h" -#include "BLEServiceBattery.h" #include "StateMachine.h" #include "interface/RobotController.h" @@ -30,11 +29,7 @@ class RobotController : public interface::RobotController void raise(auto event) { state_machine.process_event(event); }; - void initializeComponents() - { - _ble.setServices(_services); - _ble.init(); - } + void initializeComponents() { _ble.init(); } void registerEvents() { @@ -60,8 +55,6 @@ class RobotController : public interface::RobotController interface::Battery &_battery; - BLEServiceBattery _service_battery {}; - std::array _services {&_service_battery}; BLEKit _ble; }; diff --git a/libs/RobotKit/tests/RobotController_test.cpp b/libs/RobotKit/tests/RobotController_test.cpp index 5b97e8c8fa..ddabf555c9 100644 --- a/libs/RobotKit/tests/RobotController_test.cpp +++ b/libs/RobotKit/tests/RobotController_test.cpp @@ -61,7 +61,6 @@ TEST_F(RobotControllerTest, initializeComponents) ble::GapMock &mbed_mock_gap = ble::gap_mock(); ble::GattServerMock &mbed_mock_gatt = ble::gatt_server_mock(); - EXPECT_CALL(mbed_mock_gatt, addService).Times(1); EXPECT_CALL(mbed_mock_gap, setEventHandler).Times(1); EXPECT_CALL(mbed_mock_gatt, setEventHandler).Times(1);