Skip to content

Commit

Permalink
Revert ":sparkles: (rc): Add BLE battery service"
Browse files Browse the repository at this point in the history
This reverts commit d6e50ba.
  • Loading branch information
YannLocatelli committed Mar 5, 2022
1 parent ec14d34 commit 347b790
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions libs/RobotKit/include/RobotController.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#pragma once

#include "BLEKit.h"
#include "BLEServiceBattery.h"

#include "StateMachine.h"
#include "interface/RobotController.h"
Expand All @@ -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()
{
Expand All @@ -60,8 +55,6 @@ class RobotController : public interface::RobotController

interface::Battery &_battery;

BLEServiceBattery _service_battery {};
std::array<interface::BLEService *, 1> _services {&_service_battery};
BLEKit _ble;
};

Expand Down
1 change: 0 additions & 1 deletion libs/RobotKit/tests/RobotController_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 347b790

Please sign in to comment.