From d8b1056ab1c6c03d1a27c0a288915b96dfc22610 Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Fri, 3 May 2019 21:54:26 +0200 Subject: [PATCH] fix(BHI): Minor fixes to the lib --- .../BHy1_driver_and_MCU_solution/driver/inc/bhy_uc_driver.h | 2 +- lib/bosch/BHy1_driver_and_MCU_solution/driver/src/bhy.c | 2 +- .../BHy1_driver_and_MCU_solution/driver/src/bhy_uc_driver.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/bosch/BHy1_driver_and_MCU_solution/driver/inc/bhy_uc_driver.h b/lib/bosch/BHy1_driver_and_MCU_solution/driver/inc/bhy_uc_driver.h index 65c392af..7b7dee4d 100644 --- a/lib/bosch/BHy1_driver_and_MCU_solution/driver/inc/bhy_uc_driver.h +++ b/lib/bosch/BHy1_driver_and_MCU_solution/driver/inc/bhy_uc_driver.h @@ -52,7 +52,7 @@ #ifndef BHY_UC_DRIVER_H_ #define BHY_UC_DRIVER_H_ -#include "BHy_support.h" +#include "bhy_support.h" #include "bhy_uc_driver_types.h" /****************************************************************************/ diff --git a/lib/bosch/BHy1_driver_and_MCU_solution/driver/src/bhy.c b/lib/bosch/BHy1_driver_and_MCU_solution/driver/src/bhy.c index 50d8f767..2beccfec 100644 --- a/lib/bosch/BHy1_driver_and_MCU_solution/driver/src/bhy.c +++ b/lib/bosch/BHy1_driver_and_MCU_solution/driver/src/bhy.c @@ -1753,7 +1753,7 @@ u8 v_meta_parameter_request_u8) /* case for interrupt enable*/ case BHY_META_INTR_ENABLE: /* set the meta event 1, interrupt enable*/ - v_meta_bytes_u8 = (read_buffer.parameter_1&(~(1 << 0))| v_input_data_u8); + v_meta_bytes_u8 = ((read_buffer.parameter_1&(~(1 << 0)))| v_input_data_u8); bhy_assign_meta_event_byte0(v_meta_bytes_u8); break; default: diff --git a/lib/bosch/BHy1_driver_and_MCU_solution/driver/src/bhy_uc_driver.c b/lib/bosch/BHy1_driver_and_MCU_solution/driver/src/bhy_uc_driver.c index ceeb534c..01bd57e4 100644 --- a/lib/bosch/BHy1_driver_and_MCU_solution/driver/src/bhy_uc_driver.c +++ b/lib/bosch/BHy1_driver_and_MCU_solution/driver/src/bhy_uc_driver.c @@ -839,6 +839,7 @@ BHY_RETURN_FUNCTION_TYPE bhy_update_system_timestamp(bhy_data_scalar_u16_t *time default: return BHY_OUT_OF_RANGE; } + return BHY_SUCCESS; } /*! -- GitLab