Skip to content

Commit

Permalink
Home Accessory Architect v12.10.3 Merlin
Browse files Browse the repository at this point in the history
  • Loading branch information
RavenSystem committed Jan 11, 2024
1 parent 6e9f2c8 commit 85f9826
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 24 deletions.
3 changes: 1 addition & 2 deletions HAA/HAA_Installer/main/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ EXTRA_CFLAGS += -DDNS_TABLE_SIZE=4
EXTRA_CFLAGS += -DDNS_MAX_SERVERS=2
EXTRA_CFLAGS += -DDNS_MAX_RETRIES=2
EXTRA_CFLAGS += -DDHCP_DOES_ARP_CHECK=0
EXTRA_CFLAGS += -DLWIP_DHCP_AGGRESSIVE
#EXTRA_CFLAGS += -DCHECKSUM_CHECK_UDP=0

EXTRA_CFLAGS += -DDHCP_SERVER_MAX_LEASES=2
Expand All @@ -103,7 +102,7 @@ EXTRA_CFLAGS += -DWIFI_PARAM_SAVE=0
EXTRA_CFLAGS += -DconfigMAX_TASK_NAME_LEN=7
EXTRA_CFLAGS += -DconfigCHECK_FOR_STACK_OVERFLOW=2
EXTRA_CFLAGS += -DconfigMINIMAL_STACK_SIZE=256
EXTRA_CFLAGS += -DconfigTIMER_TASK_PRIORITY=\(configMAX_PRIORITIES-3\)
EXTRA_CFLAGS += -DconfigTIMER_TASK_PRIORITY=\(tskIDLE_PRIORITY+5\)
EXTRA_CFLAGS += -DconfigTIMER_QUEUE_LENGTH=10
EXTRA_CFLAGS += -DconfigTIMER_TASK_STACK_DEPTH=600

Expand Down
2 changes: 1 addition & 1 deletion HAA/HAA_Installer/main/header.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
#include "../../common/common_headers.h"

#define INSTALLER_BETA_REVISION "" // Format: "b01"
#define INSTALLER_VERSION "7.8.1"INSTALLER_BETA_REVISION
#define INSTALLER_VERSION "7.8.2"INSTALLER_BETA_REVISION

#endif // __HAA_OTA_HEADER_H__
3 changes: 1 addition & 2 deletions HAA/HAA_Main/main/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ EXTRA_CFLAGS += -DLWIP_RAW=1
EXTRA_CFLAGS += -DARP_TABLE_SIZE=10
EXTRA_CFLAGS += -DDNS_MAX_RETRIES=2
EXTRA_CFLAGS += -DDHCP_DOES_ARP_CHECK=0
EXTRA_CFLAGS += -DLWIP_DHCP_AGGRESSIVE
EXTRA_CFLAGS += -DLWIP_DHCP_RANDOMIZE_COARSE_TIME_SECS=10
EXTRA_CFLAGS += -DDEFAULT_RAW_RECVMBOX_SIZE=5
EXTRA_CFLAGS += -DMEMP_NUM_NETCONN=16
Expand All @@ -85,7 +84,7 @@ EXTRA_CFLAGS += -DWIFI_PARAM_SAVE=0
EXTRA_CFLAGS += -DconfigMAX_TASK_NAME_LEN=7
EXTRA_CFLAGS += -DconfigCHECK_FOR_STACK_OVERFLOW=2
EXTRA_CFLAGS += -DconfigMINIMAL_STACK_SIZE=256
EXTRA_CFLAGS += -DconfigTIMER_TASK_PRIORITY=\(configMAX_PRIORITIES-3\)
EXTRA_CFLAGS += -DconfigTIMER_TASK_PRIORITY=\(tskIDLE_PRIORITY+5\)
EXTRA_CFLAGS += -DconfigTIMER_QUEUE_LENGTH=15
EXTRA_CFLAGS += -DconfigTIMER_TASK_STACK_DEPTH=736

Expand Down
4 changes: 2 additions & 2 deletions HAA/HAA_Main/main/header.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "../../common/common_headers.h"

// Version
#define HAA_FIRMWARE_VERSION "12.10.2"
#define HAA_FIRMWARE_VERSION "12.10.3"
#define HAA_FIRMWARE_BETA_REVISION "" // Format: "b01"
#define HAA_FIRMWARE_CODENAME "Merlin"

Expand Down Expand Up @@ -771,7 +771,7 @@
#define SETUP_MODE_ACTIVATE_COUNT "z"
#define SETUP_MODE_DEFAULT_ACTIVATE_COUNT (8)
#define SETUP_MODE_TOGGLE_TIME_MS (1050)
#define CUSTOM_HAA_COMMAND "bl"
#define CUSTOM_HAA_COMMAND "dt"
#define HAA_SETUP_ACCESSORY_SET "s"

#define IRRF_CAPTURE_BUFFER_SIZE (2048)
Expand Down
18 changes: 9 additions & 9 deletions HAA/HAA_Main/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11466,15 +11466,7 @@ void normal_mode_init() {
GARAGE_DOOR_HAS_F5 = 1;

if (diginput_register(cJSON_rsf_GetObjectItemCaseSensitive(json_context, FIXED_BUTTONS_ARRAY_5), garage_door_sensor, ch_group, GARAGE_DOOR_CLOSING)) {
initial_sensor = GARAGE_DOOR_OPENED;
}
}

if (cJSON_rsf_GetObjectItemCaseSensitive(json_context, FIXED_BUTTONS_ARRAY_4) != NULL) {
GARAGE_DOOR_HAS_F4 = 1;

if (diginput_register(cJSON_rsf_GetObjectItemCaseSensitive(json_context, FIXED_BUTTONS_ARRAY_4), garage_door_sensor, ch_group, GARAGE_DOOR_OPENING)) {
initial_sensor = GARAGE_DOOR_OPENED;
initial_sensor = GARAGE_DOOR_CLOSED;
}
}

Expand All @@ -11486,6 +11478,14 @@ void normal_mode_init() {
}
}

if (cJSON_rsf_GetObjectItemCaseSensitive(json_context, FIXED_BUTTONS_ARRAY_4) != NULL) {
GARAGE_DOOR_HAS_F4 = 1;

if (diginput_register(cJSON_rsf_GetObjectItemCaseSensitive(json_context, FIXED_BUTTONS_ARRAY_4), garage_door_sensor, ch_group, GARAGE_DOOR_OPENING)) {
initial_sensor = GARAGE_DOOR_OPENED;
}
}

if (cJSON_rsf_GetObjectItemCaseSensitive(json_context, FIXED_BUTTONS_ARRAY_2) != NULL) {
GARAGE_DOOR_HAS_F2 = 1;

Expand Down
2 changes: 1 addition & 1 deletion sdk/esp-open-rtos-rsf/lwip/include/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ void sys_unlock_tcpip_core(void);
* The priority value itself is platform-dependent, but is passed to
* sys_thread_new() when the thread is created.
*/
#define TCPIP_THREAD_PRIO (configMAX_PRIORITIES-7)
#define TCPIP_THREAD_PRIO (configMAX_PRIORITIES-5)

/**
* TCPIP_MBOX_SIZE: The mailbox size for the tcpip thread messages
Expand Down
8 changes: 1 addition & 7 deletions sdk/esp-open-rtos-rsf/lwip/lwip/src/core/ipv4/dhcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@
#define LWIP_HOOK_DHCP_PARSE_OPTION(netif, dhcp, state, msg, msg_type, option, len, pbuf, offset) do { LWIP_UNUSED_ARG(msg); } while(0)
#endif

#ifdef LWIP_DHCP_AGGRESSIVE
#define LWIP_DHCP_RETRY_TIMEOUT (500)
#else
#define LWIP_DHCP_RETRY_TIMEOUT (1000)
#endif /* LWIP_DHCP_AGGRESSIVE */

/** DHCP_CREATE_RAND_XID: if this is set to 1, the xid is created using
* LWIP_RAND() (this overrides DHCP_GLOBAL_XID)
*/
Expand Down Expand Up @@ -1056,7 +1050,7 @@ dhcp_discover(struct netif *netif)
autoip_start(netif);
}
#endif /* LWIP_DHCP_AUTOIP_COOP */
msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * LWIP_DHCP_RETRY_TIMEOUT);
msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000);
dhcp->request_timeout = dhcp_calculated_fine_time(msecs);
LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover(): set request timeout %"U16_F" msecs\n", msecs));
return result;
Expand Down

0 comments on commit 85f9826

Please sign in to comment.