Skip to content

Commit

Permalink
Changed std::function to plain pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
adamb-q authored and tima-q committed Nov 21, 2022
1 parent 27b5a7a commit 5f36b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/lighting-app/qpg/include/LightingManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class LightingManager
uint8_t GetLevel();
bool InitiateAction(Action_t aAction, int32_t aActor, uint16_t size, uint8_t * value);

using LightingCallback_fn = std::function<void(Action_t)>;
using LightingCallback_fn = void (*)(Action_t);

void SetCallbacks(LightingCallback_fn aActionInitiated_CB, LightingCallback_fn aActionCompleted_CB);

Expand Down

0 comments on commit 5f36b20

Please sign in to comment.