mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-15 16:52:38 +03:00
Update subghz_scene_set_seed.c
delete incorrect function call
This commit is contained in:
parent
7218f6023b
commit
371ec30bd0
@ -56,12 +56,6 @@ bool subghz_scene_set_seed_on_event(void* context, SceneManagerEvent event) {
|
|||||||
868350000,
|
868350000,
|
||||||
FuriHalSubGhzPresetOok650Async);
|
FuriHalSubGhzPresetOok650Async);
|
||||||
|
|
||||||
subghz->txrx->decoder_result =
|
|
||||||
subghz_protocol_decoder_faac_slh_alloc(subghz->txrx->environment);
|
|
||||||
if(subghz->txrx->decoder_result) {
|
|
||||||
subghz_protocol_faac_slh_set_seed_to_decoder(subghz->txrx->transmitter->protocol_instance, seed);
|
|
||||||
}
|
|
||||||
|
|
||||||
uint8_t seed_data[sizeof(uint32_t)] = {0};
|
uint8_t seed_data[sizeof(uint32_t)] = {0};
|
||||||
for(size_t i = 0; i < sizeof(uint32_t); i++) {
|
for(size_t i = 0; i < sizeof(uint32_t); i++) {
|
||||||
seed_data[sizeof(uint32_t) - i - 1] = (seed >> i * 8) & 0xFF;
|
seed_data[sizeof(uint32_t) - i - 1] = (seed >> i * 8) & 0xFF;
|
||||||
|
Loading…
Reference in New Issue
Block a user