daily commit did

master
Mateusz Lubecki 2023-07-11 15:29:02 +02:00
rodzic 431d5a8d09
commit 280a12e9f1
3 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -237,7 +237,7 @@ int32_t kiss_callback_read_did(uint8_t* input_frame_from_host, uint16_t input_le
// if response is correct fill the buffer with the rest of stuff
response_buffer[0] = FEND;
response_buffer[1] = NONSTANDARD;
response_buffer[2] = PROGRAM_STARTUP_LN; // message lenght
response_buffer[2] = response_size + 5; // message lenght
response_buffer[3] = KISS_READ_DID_RESP;
response_buffer[response_size + 4] = FEND;

Wyświetl plik

@ -180,6 +180,11 @@ int32_t kiss_parse_received(uint8_t* input_frame_from_host, uint16_t input_len,
break;
}
case KISS_READ_DID: {
output = kiss_callback_read_did(input_frame_from_host, input_len, response_buffer, resp_buf_ln);
break;
}
default: {
// unknown service

Wyświetl plik

@ -40,7 +40,8 @@ const static kiss_did_numeric_definition_t kiss_did_def[] = {
};
//!< Mapping between a result of sizeof operator and a value of sizebyte
const static uint8_t kiss_did_sizeof_to_sizebyte_mapping[4] = {
const static uint8_t kiss_did_sizeof_to_sizebyte_mapping[5] = {
0,// nothing
1, // int8_t
2, // int16_t
0, // nothing