furi_hal_subghz_is_tx_allowed not in all fw.
This commit is contained in:
parent
8f0c94c1a5
commit
b8db448de7
@ -820,17 +820,7 @@ int32_t rock_paper_scissors_app(void* p) {
|
|||||||
// For this game we hardcode to 433.92MHz.
|
// For this game we hardcode to 433.92MHz.
|
||||||
uint32_t frequency = 433920000;
|
uint32_t frequency = 433920000;
|
||||||
|
|
||||||
// TODO: Have an ordered list of frequencies we try, instead of just 1 frequency.
|
// TODO: Figure out if frequency is allowed & try multiple frequencies.
|
||||||
|
|
||||||
// Since this game transmits RF, we see if it is allowed.
|
|
||||||
if(!furi_hal_subghz_is_tx_allowed(frequency)) {
|
|
||||||
FURI_LOG_E(TAG, "Transmit on frequency %ld not allowed", frequency);
|
|
||||||
|
|
||||||
// For this game we don't show a friendly error about not being
|
|
||||||
// allowed to broadcast on this frequency. Instead the application
|
|
||||||
// just exits.
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Configure our initial data.
|
// Configure our initial data.
|
||||||
GameContext* game_context = malloc(sizeof(GameContext));
|
GameContext* game_context = malloc(sizeof(GameContext));
|
||||||
|
Loading…
Reference in New Issue
Block a user