Update subghz_scene_set_seed.c

delete incorrect function call
This commit is contained in:
r3df0xx 2022-04-27 17:47:46 +03:00
parent 7218f6023b
commit 371ec30bd0

View File

@ -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;