aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm32f091/protocol.c')
-rw-r--r--stm32f091/protocol.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/stm32f091/protocol.c b/stm32f091/protocol.c
index 4d605fc..ca46b3b 100644
--- a/stm32f091/protocol.c
+++ b/stm32f091/protocol.c
@@ -21,7 +21,6 @@ void ws_protocol_res_last_records(ws_s_protocol_parsed_req_cmd* parsed_cmd, ws_s
record_amount = WS_MIN(record_amount, ws_backlog_get_record_count());
response->msg->bytes = strlen(response_header) + response_line_len * record_amount;
}
- ws_server_req_respond_start(0, response->msg->bytes + ws_protocol_get_header_size(response));
} else {
if (response->success == WS_PROTOCOL_CMD_RETURN_ERROR) return;
ws_protocol_send_data(response_header, strlen(response_header));
@@ -29,9 +28,8 @@ void ws_protocol_res_last_records(ws_s_protocol_parsed_req_cmd* parsed_cmd, ws_s
for (unsigned int i = 0; i < record_amount; i++) {
ws_s_backlog_record* record = ws_backlog_get_last_record(i);
sprintf(line, "%04x,%02x,%02x,%02x\n", record->id, record->sens_temperature, record->sens_humidity, record->sens_atm_pressure);
- ws_protocol_send_data(line, response_line_len); // remove string terminator
+ ws_protocol_send_data(line, response_line_len);
}
- // ws_protocol_send_data("\r\n", 2); // test
}
}