Skip to content

Commit

Permalink
Fix touchlink (memory issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
nurikk committed May 30, 2020
1 parent 6dd74bc commit 2dc37f7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CC2530DB/settings/GenericApp.dnx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<Placement>_ 1238 679 2122 1219</Placement>
</BreakpointUsageDialog>
<DebugChecksum>
<Checksum>414219081</Checksum>
<Checksum>919786274</Checksum>
</DebugChecksum>
<CallStack>
<ShowArgs>0</ShowArgs>
Expand Down
2 changes: 1 addition & 1 deletion Source/Debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bool DebugInit() {
// reaches maxRxBufSize
halUARTConfig.idleTimeout = 10; // this parameter indicates rx timeout period in millisecond
halUARTConfig.rx.maxBufSize = 0;
halUARTConfig.tx.maxBufSize = BUFFLEN;
halUARTConfig.tx.maxBufSize = BUFFLEN >> 1;
halUARTConfig.intEnable = TRUE;
halUARTConfig.callBackFunc = HalUARTCback;
HalUARTInit();
Expand Down
6 changes: 5 additions & 1 deletion Source/preinclude.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#define HAL_BUZZER FALSE

#define HAL_LED TRUE
#define HAL_LCD FALSE
#define BLINK_LEDS TRUE


Expand Down Expand Up @@ -78,7 +79,10 @@
#ifdef NWK_MAX_BINDING_ENTRIES
#undef NWK_MAX_BINDING_ENTRIES
#endif
#define NWK_MAX_BINDING_ENTRIES (2 * FREEPAD_BUTTONS_COUNT) + 4
#define NWK_MAX_BINDING_ENTRIES MAX(10, ((2 * FREEPAD_BUTTONS_COUNT)))

#undef APS_MAX_GROUPS
#define APS_MAX_GROUPS 1

#if defined(HAL_BOARD_FREEPAD_20) || defined(HAL_BOARD_FREEPAD_12) || defined(HAL_BOARD_FREEPAD_8) || defined(HAL_BOARD_FREEPAD_3) || defined(HAL_BOARD_FREEPAD_2) || defined(HAL_BOARD_FREEPAD_1)
#define HAL_UART FALSE
Expand Down
5 changes: 0 additions & 5 deletions Source/zcl_freepadapp.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,13 @@ extern SimpleDescriptionFormat_t zclFreePadApp_SimpleDescs[];
extern uint8 zclFreePadApp_SimpleDescsCount;
extern uint8 zclFreePadApp_BatteryVoltage;
extern uint8 zclFreePadApp_BatteryPercentageRemainig;
extern CONST zclCommandRec_t zclFreePadApp_Cmds[];

extern CONST uint8 zclCmdsArraySize;

// attribute list
extern CONST zclAttrRec_t zclFreePadApp_Attrs[][FREEPAD_ATTRS_COUNT];
extern CONST zclAttrRec_t zclFreePadApp_AttrsFirstEP[];
extern CONST uint8 zclFreePadApp_AttrsFirstEPCount;

extern const uint8 zclFreePadApp_ManufacturerName[];
extern const uint8 zclFreePadApp_ModelId[];
extern const uint8 zclFreePadApp_PowerSource;

// FREEPADAPP_TODO: Declare application specific attributes here

Expand Down

0 comments on commit 2dc37f7

Please sign in to comment.