Skip to content

Commit

Permalink
Quick update
Browse files Browse the repository at this point in the history
  • Loading branch information
sfeakes committed Jun 5, 2023
1 parent 1315145 commit 77c8e29
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 22,421 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ DBGFLAGS = -g -O0 -Wall -D AQ_DEBUG -D AQ_TM_DEBUG

# Mongoose flags
MGFLAGS = -D MG_DISABLE_MD5 -D MG_DISABLE_HTTP_DIGEST_AUTH -D MG_DISABLE_MD5 -D MG_DISABLE_JSON_RPC

#MGFLAGS =

# define the C source files
#SRCS = aqualinkd.c utils.c config.c aq_serial.c init_buttons.c aq_programmer.c net_services.c json_messages.c pda.c pda_menu.c \
Expand Down
1 change: 1 addition & 0 deletions aq_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ void programDeviceLightMode(struct aqualinkdata *aqdata, int value, int button)
//bool panel_device_request(struct aqualinkdata *aqdata, action_type type, int deviceIndex, int value, int subIndex, bool fromMQTT)
bool panel_device_request(struct aqualinkdata *aqdata, action_type type, int deviceIndex, int value, request_source source)
{
//LOG(AQUA_LOG,LOG_NOTICE, "Device request type %d for deviceindex %d of value %d from %d\n",type,deviceIndex, value, source);
switch (type) {
case ON_OFF:
//setDeviceState(&aqdata->aqbuttons[deviceIndex], value<=0?false:true, deviceIndex );
Expand Down
3 changes: 2 additions & 1 deletion aq_programmer.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ unsigned char pop_ot_cmd(unsigned char receive_type)
*/
bool push_aq_cmd(unsigned char cmd) {

//LOG(PROG_LOG, LOG_DEBUG, "push_aq_cmd '0x%02hhx'\n", cmd);
//LOG(PROG_LOG, LOG_NOTICE, "push_aq_cmd '0x%02hhx'\n", cmd);

if (_stack_place < MAX_STACK) {
_commands[_stack_place] = cmd;
Expand Down Expand Up @@ -174,6 +174,7 @@ unsigned char pop_aq_cmd(struct aqualinkdata *aq_data)
cmd = _commands[0];
_stack_place--;
LOG(PROG_LOG, LOG_DEBUG_SERIAL, "RS SEND cmd '0x%02hhx'\n", cmd);
//LOG(PROG_LOG, LOG_NOTICE, "pop_cmd '0x%02hhx'\n", cmd);
memmove(&_commands[0], &_commands[1], sizeof(unsigned char) * _stack_place ) ;
} else {
LOG(PROG_LOG, LOG_DEBUG_SERIAL, "RS SEND cmd '0x%02hhx'\n", cmd);
Expand Down
2 changes: 1 addition & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void init_parameters (struct aqconfig * parms)

parms->enable_scheduler = true;
parms->ftdi_low_latency = true;
parms->prioritize_ack = true;
parms->prioritize_ack = false;

generate_mqtt_id(parms->mqtt_ID, MQTT_ID_LEN);
}
Expand Down
Loading

0 comments on commit 77c8e29

Please sign in to comment.