Skip to content

Commit 516d730

Browse files
committed
remove FW_ASSERTs
1 parent d8fce1f commit 516d730

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

FprimeZephyrReference/Components/Drv/Lis2mdlManager/Lis2mdlManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ namespace Drv {
1616
Lis2mdlManager ::Lis2mdlManager(const char* const compName) : Lis2mdlManagerComponentBase(compName) {
1717
// Initialize the lis2mdl sensor
1818
lis2mdl = device_get_binding("LIS2MDL");
19-
FW_ASSERT(device_is_ready(lis2mdl));
2019
}
2120

2221
Lis2mdlManager ::~Lis2mdlManager() {}

FprimeZephyrReference/Components/Drv/Lsm6dsoManager/Lsm6dsoManager.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@ namespace Drv {
1616
Lsm6dsoManager ::Lsm6dsoManager(const char* const compName) : Lsm6dsoManagerComponentBase(compName) {
1717
// Initialize the LSM6DSO sensor
1818
lsm6dso = DEVICE_DT_GET_ONE(st_lsm6dso);
19-
FW_ASSERT(device_is_ready(lsm6dso));
2019

2120
// Configure the LSM6DSO sensor
2221
struct sensor_value odr = {.val1 = 12, .val2 = 500000}; // 12.5 Hz
23-
FW_ASSERT(sensor_attr_set(lsm6dso, SENSOR_CHAN_ACCEL_XYZ, SENSOR_ATTR_SAMPLING_FREQUENCY, &odr) == 0);
24-
FW_ASSERT(sensor_attr_set(lsm6dso, SENSOR_CHAN_GYRO_XYZ, SENSOR_ATTR_SAMPLING_FREQUENCY, &odr) == 0);
2522
}
2623

2724
Lsm6dsoManager ::~Lsm6dsoManager() {}

0 commit comments

Comments
 (0)