@@ -154,21 +154,23 @@ extern bool bTxStatusReportEnabled;
154154zpal_tx_power_t
155155GetMaxSupportedTxPower (void )
156156{
157- const SApplicationHandles * pAppHandles = ZAF_getAppHandle ();
158- SZwaveCommandPackage CommandPackage = {
159- .eCommandType = EZWAVECOMMANDTYPE_ZW_GET_TX_POWER_MAX_SUPPORTED
160- };
161- // Put the Command on queue (and dont wait for it, queue must be empty)
162- if (EQUEUENOTIFYING_STATUS_SUCCESS == QueueNotifyingSendToBack (pAppHandles -> pZwCommandQueue , (uint8_t * )& CommandPackage , 0 ))
163- {
164- // Wait for protocol to handle command
165- SZwaveCommandStatusPackage result = { 0 };
166- if (GetCommandResponse (& result , EZWAVECOMMANDSTATUS_ZW_GET_TX_POWER_MAX_SUPPORTED ))
167- {
168- return result .Content .GetTxPowerMaximumSupported .tx_power_max_supported ;
169- }
170- }
171- return ZW_TX_POWER_14DBM ;
157+ // Work around incorrect max. TX Power on Simplicity SDK
158+ return ZW_TX_POWER_20DBM ;
159+ // const SApplicationHandles *pAppHandles = ZAF_getAppHandle();
160+ // SZwaveCommandPackage CommandPackage = {
161+ // .eCommandType = EZWAVECOMMANDTYPE_ZW_GET_TX_POWER_MAX_SUPPORTED
162+ // };
163+ // // Put the Command on queue (and dont wait for it, queue must be empty)
164+ // if (EQUEUENOTIFYING_STATUS_SUCCESS == QueueNotifyingSendToBack(pAppHandles->pZwCommandQueue, (uint8_t *)&CommandPackage, 0))
165+ // {
166+ // // Wait for protocol to handle command
167+ // SZwaveCommandStatusPackage result = { 0 };
168+ // if (GetCommandResponse(&result, EZWAVECOMMANDSTATUS_ZW_GET_TX_POWER_MAX_SUPPORTED))
169+ // {
170+ // return result.Content.GetTxPowerMaximumSupported.tx_power_max_supported;
171+ // }
172+ // }
173+ // return ZW_TX_POWER_14DBM;
172174}
173175
174176void func_id_serial_api_setup (uint8_t inputLength ,
0 commit comments