Skip to content

Commit c05177b

Browse files
committed
add zuno_IsLr
1 parent 4b230af commit c05177b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

hardware/arduino/zunoG2/cores/ZWSupport/ZWSupport.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ static const uint8_t FREQ_TBL_CONV[][2] = { {ZME_FREQ_EU, REGION_EU},
5353
{ZME_FREQ_IL, REGION_IL},
5454
{ZME_FREQ_MY, REGION_KR},
5555
{ZME_FREQ_LR_US, REGION_US_LR}};
56+
57+
bool zuno_IsLr(void) {
58+
if (g_zuno_sys->node_id >= 0x100)
59+
return (true);
60+
return (false);
61+
}
62+
5663
// -----------------------------------------------------------------
5764
// STATIC NIF
5865
// -----------------------------------------------------------------

hardware/arduino/zunoG2/cores/includes/Arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ enum{
3333
ZUNO_SECUREPARAM_UNDEFINED = 0xFF,
3434
};
3535

36+
bool zuno_IsLr(void);
37+
3638
// Configurator
3739
#define zunoChangeDefine(type, v) type v, _##v
3840
#define zunoChangeInit(v, i) v = i; _##v = v + 1

0 commit comments

Comments
 (0)