mirror of https://github.com/sfeakes/AqualinkD.git
Quick update
parent
1315145444
commit
77c8e290d5
2
Makefile
2
Makefile
|
@ -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 \
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
|
@ -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);
|
||||
|
|
2
config.c
2
config.c
|
@ -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);
|
||||
}
|
||||
|
|
16141
mongoose.c
16141
mongoose.c
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1 @@
|
|||
./mongoose/mongoose-v6.18.c
|
6277
mongoose.h
6277
mongoose.h
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1 @@
|
|||
./mongoose/mongoose-v6.18.h
|
|
@ -1242,11 +1242,13 @@ float pass_mg_body(struct mg_str *body) {
|
|||
// Need to copy to buffer so we can terminate correctly.
|
||||
strncpy(buf, &body->p[i], body->len - i);
|
||||
buf[body->len - i] = '\0';
|
||||
//printf ("RETURN\n");
|
||||
//return atof(&body->p[i]);
|
||||
return atof(buf);
|
||||
}
|
||||
}
|
||||
}
|
||||
//printf ("RETURN UNKNOWN\n");
|
||||
return TEMP_UNKNOWN;
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue