Add a panic() function
All threads resolved!
All threads resolved!
Compare changes
Files
2-
Newlib assert uses __assert_func and thus our panic() function while MXC_ASSERT uses a custom assertion logic. Newlib assert is also more portable as it works in expression position while MXC_ASSERT only works as a statement. Signed-off-by:
Rahix <rahix@rahix.de>
+ 4
− 3
@@ -259,14 +260,14 @@ bhi160_handle_packet(bhy_data_type_t data_type, bhy_data_generic_t *sensor_data)
@@ -303,7 +304,7 @@ bhi160_handle_packet(bhy_data_type_t data_type, bhy_data_generic_t *sensor_data)