mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-24 05:23:06 +00:00
////
This commit is contained in:
parent
4f580f1e17
commit
eb57632a22
4 changed files with 12 additions and 7 deletions
|
@ -39,7 +39,8 @@ bool subghz_scene_set_cnt_on_event(void* context, SceneManagerEvent event) {
|
|||
|
||||
void subghz_scene_set_cnt_on_exit(void* context) {
|
||||
SubGhz* subghz = context;
|
||||
FURI_LOG_I(TAG, "cnt: %4X\n", *subghz->txrx->secure_data->cnt);
|
||||
uint16_t cnt = *subghz->txrx->secure_data->cnt << 8 | (*subghz->txrx->secure_data->cnt+1);
|
||||
FURI_LOG_I(TAG, "cnt: %4X\n", cnt);
|
||||
// Clear view
|
||||
byte_input_set_result_callback(subghz->byte_input, NULL, NULL, NULL, NULL, 0);
|
||||
byte_input_set_header_text(subghz->byte_input, "");
|
||||
|
|
|
@ -39,7 +39,9 @@ bool subghz_scene_set_fix_on_event(void* context, SceneManagerEvent event) {
|
|||
|
||||
void subghz_scene_set_fix_on_exit(void* context) {
|
||||
SubGhz* subghz = context;
|
||||
FURI_LOG_I(TAG, "fix: %8X\n", *subghz->txrx->secure_data->fix);
|
||||
uint32_t fix = *subghz->txrx->secure_data->fix << 24 | (*subghz->txrx->secure_data->fix+1) << 16 |
|
||||
(*subghz->txrx->secure_data->fix+2) << 8 | (*subghz->txrx->secure_data->fix+3);
|
||||
FURI_LOG_I(TAG, "fix: %8X\n", fix);
|
||||
// Clear view
|
||||
byte_input_set_result_callback(subghz->byte_input, NULL, NULL, NULL, NULL, 0);
|
||||
byte_input_set_header_text(subghz->byte_input, "");
|
||||
|
|
|
@ -39,7 +39,9 @@ bool subghz_scene_set_seed_on_event(void* context, SceneManagerEvent event) {
|
|||
|
||||
void subghz_scene_set_seed_on_exit(void* context) {
|
||||
SubGhz* subghz = context;
|
||||
FURI_LOG_I(TAG, "seed: %8X\n", *subghz->txrx->secure_data->seed);
|
||||
uint32_t seed = *subghz->txrx->secure_data->seed << 24 | (*subghz->txrx->secure_data->seed+1) << 16 |
|
||||
(*subghz->txrx->secure_data->seed+2) << 8 | (*subghz->txrx->secure_data->seed+3);
|
||||
FURI_LOG_I(TAG, "seed: %8X\n", seed);
|
||||
// Clear view
|
||||
byte_input_set_result_callback(subghz->byte_input, NULL, NULL, NULL, NULL, 0);
|
||||
byte_input_set_header_text(subghz->byte_input, "");
|
||||
|
|
|
@ -160,13 +160,13 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
|
|||
switch(event.event) {
|
||||
case SubmenuIndexFaacSLH:
|
||||
scene_manager_next_scene(subghz->scene_manager, SubGhzSceneSetFix);
|
||||
uint32_t fix_part = *subghz->txrx->secure_data->fix << 24 | ((*subghz->txrx->secure_data->fix+1) << 16) |
|
||||
((*subghz->txrx->secure_data->fix+2) << 8) | (*subghz->txrx->secure_data->fix+3);
|
||||
uint32_t fix_part = *subghz->txrx->secure_data->fix << 24 | (*subghz->txrx->secure_data->fix+1) << 16 |
|
||||
(*subghz->txrx->secure_data->fix+2) << 8 | (*subghz->txrx->secure_data->fix+3);
|
||||
FURI_LOG_I(TAG, "fix: %8X", fix_part);
|
||||
uint16_t cnt = *subghz->txrx->secure_data->cnt << 8 | (*subghz->txrx->secure_data->cnt+1);
|
||||
FURI_LOG_I(TAG, "cnt: %8X", cnt);
|
||||
uint32_t seed = *subghz->txrx->secure_data->seed << 24 | ((*subghz->txrx->secure_data->seed+1) << 16) |
|
||||
((*subghz->txrx->secure_data->seed+2) << 8) | (*subghz->txrx->secure_data->seed+3);
|
||||
uint32_t seed = *subghz->txrx->secure_data->seed << 24 | (*subghz->txrx->secure_data->seed+1) << 16 |
|
||||
(*subghz->txrx->secure_data->seed+2) << 8 | (*subghz->txrx->secure_data->seed+3);
|
||||
FURI_LOG_I(TAG, "seed: %8X", seed);
|
||||
subghz->txrx->transmitter =
|
||||
subghz_transmitter_alloc_init(subghz->txrx->environment, "Faac SLH");
|
||||
|
|
Loading…
Reference in a new issue