aboutsummaryrefslogtreecommitdiffstats
path: root/4a-hal
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-08 10:51:01 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:52:51 +0200
commitf0cbf96720332f388b3effbaba84db462d8294e2 (patch)
treebbf86775585c21a66d7d5a1929082eb2f7ee6636 /4a-hal
parent2ae25fb1dab5e907223d2e8fc54364d050ee18a8 (diff)
Prevent sending data to mixer of hal is not ready
Prevent sending data to mixer of hal is not ready. Change-Id: Ie511a5e23760e87336745dbe15d8d2a5e9481518 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal')
-rw-r--r--4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c4
-rw-r--r--4a-hal/4a-hal-utilities/4a-hal-utilities-data.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c
index e3d0744..08ee5c0 100644
--- a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c
+++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c
@@ -127,8 +127,8 @@ void HalCtlsActionOnStream(AFB_ReqT request)
return;
}
- if(currentCtlHalData->status != HAL_STATUS_AVAILABLE) {
- AFB_ReqFail(request, "hal_unavailable", "Seems that hal is not available");
+ if(currentCtlHalData->status != HAL_STATUS_READY) {
+ AFB_ReqFail(request, "hal_not_ready", "Seems that hal is not ready");
return;
}
diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h
index 71cda63..b472df6 100644
--- a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h
+++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h
@@ -33,7 +33,7 @@
enum HalStatus {
HAL_STATUS_UNAVAILABLE=0,
HAL_STATUS_AVAILABLE=1,
- HAL_STATUS_READY=2,
+ HAL_STATUS_READY=2
};
// Structure to store stream data