diff --git a/hardware/arduino/zunoG2/cores/ZWSupport/ZWSupport.c b/hardware/arduino/zunoG2/cores/ZWSupport/ZWSupport.c index 230606ef..3c0a032e 100644 --- a/hardware/arduino/zunoG2/cores/ZWSupport/ZWSupport.c +++ b/hardware/arduino/zunoG2/cores/ZWSupport/ZWSupport.c @@ -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 // ----------------------------------------------------------------- diff --git a/hardware/arduino/zunoG2/cores/includes/Arduino.h b/hardware/arduino/zunoG2/cores/includes/Arduino.h index b08759ff..eeae8a63 100644 --- a/hardware/arduino/zunoG2/cores/includes/Arduino.h +++ b/hardware/arduino/zunoG2/cores/includes/Arduino.h @@ -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