Skip to content

Commit

Permalink
add zuno_IsLr
Browse files Browse the repository at this point in the history
  • Loading branch information
amatilda committed Oct 15, 2024
1 parent 4b230af commit c05177b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hardware/arduino/zunoG2/cores/ZWSupport/ZWSupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ static const uint8_t FREQ_TBL_CONV[][2] = { {ZME_FREQ_EU, REGION_EU},
{ZME_FREQ_IL, REGION_IL},
{ZME_FREQ_MY, REGION_KR},
{ZME_FREQ_LR_US, REGION_US_LR}};

bool zuno_IsLr(void) {
if (g_zuno_sys->node_id >= 0x100)
return (true);
return (false);
}

// -----------------------------------------------------------------
// STATIC NIF
// -----------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions hardware/arduino/zunoG2/cores/includes/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ enum{
ZUNO_SECUREPARAM_UNDEFINED = 0xFF,
};

bool zuno_IsLr(void);

// Configurator
#define zunoChangeDefine(type, v) type v, _##v
#define zunoChangeInit(v, i) v = i; _##v = v + 1
Expand Down

0 comments on commit c05177b

Please sign in to comment.