mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-26 03:39:58 -07:00
Api Symbols: replace asserts with checks
merge ofw commit
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
#include "math.h"
|
||||
#include <core/check.h>
|
||||
|
||||
#include "furi.h"
|
||||
|
||||
#define TAG "SubGhzBlockEncoder"
|
||||
|
||||
void subghz_protocol_blocks_set_bit_array(
|
||||
@@ -11,7 +9,7 @@ void subghz_protocol_blocks_set_bit_array(
|
||||
uint8_t data_array[],
|
||||
size_t set_index_bit,
|
||||
size_t max_size_array) {
|
||||
furi_assert(set_index_bit < max_size_array * 8);
|
||||
furi_check(set_index_bit < max_size_array * 8);
|
||||
bit_write(data_array[set_index_bit >> 3], 7 - (set_index_bit & 0x7), bit_value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user