From 226aa0fb14a036f44e9931ea7b7c45aa569be2d9 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Wed, 31 Oct 2018 15:55:32 +0100 Subject: Use new ctl functions to set/get ctl external data Use new controller functions to set/get controller configuration structure external data field. Change-Id: I0e1ce259fccbbd8b4054efbed07cef5c5b9243b5 Signed-off-by: Jonathan Aillet --- plugins/lib/bluetooth/hal-bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/lib/bluetooth/hal-bt.c b/plugins/lib/bluetooth/hal-bt.c index e5c73bc..7884dd6 100644 --- a/plugins/lib/bluetooth/hal-bt.c +++ b/plugins/lib/bluetooth/hal-bt.c @@ -69,7 +69,7 @@ CTLP_INIT(plugin, callbacks) return -1; } - if(! (currentHalData = (struct SpecificHalData *) ctrlConfig->external)) { + if(! (currentHalData = getExternalData(ctrlConfig))) { AFB_ApiError(plugin->api, "Can't get current hal controller data"); return -2; } -- cgit 1.2.3-korg