mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-15 22:20:59 +00:00
mesh/health_server: remove mesh_fault_t typedef and fix mesh_health_server_add_fault_state signature
This commit is contained in:
parent
58a7b487b7
commit
a98de36310
@ -90,15 +90,6 @@ typedef enum {
|
||||
|
||||
#define MESH_MAX_NUM_FAULTS 5
|
||||
|
||||
typedef struct {
|
||||
// linked list item
|
||||
btstack_linked_item_t item;
|
||||
uint8_t test_id;
|
||||
uint16_t company_id;
|
||||
uint16_t num_faults;
|
||||
uint8_t faults[MESH_MAX_NUM_FAULTS];
|
||||
} mesh_fault_t;
|
||||
|
||||
typedef struct {
|
||||
// linked list item
|
||||
btstack_linked_item_t item;
|
||||
|
@ -369,7 +369,7 @@ void mesh_health_server_register_packet_handler(mesh_model_t *mesh_model, btstac
|
||||
mesh_model->model_packet_handler = events_packet_handler;
|
||||
}
|
||||
|
||||
void mesh_health_server_add_fault_state(mesh_model_t *mesh_model, uint16_t company_id, mesh_fault_t * fault_state){
|
||||
void mesh_health_server_add_fault_state(mesh_model_t *mesh_model, uint16_t company_id, mesh_health_fault_t * fault_state){
|
||||
mesh_health_state_t * state = (mesh_health_state_t *) mesh_model->model_data;
|
||||
mesh_health_fault_t * fault = mesh_health_server_fault_for_company_id(mesh_model, company_id);
|
||||
btstack_assert(fault == NULL);
|
||||
|
@ -72,7 +72,7 @@ void mesh_health_server_report_test_not_supported(uint16_t element_index, uint16
|
||||
* @param company_id
|
||||
* @param fault_state
|
||||
*/
|
||||
void mesh_health_server_add_fault_state(mesh_model_t *mesh_model, uint16_t company_id, mesh_fault_t * fault_state);
|
||||
void mesh_health_server_add_fault_state(mesh_model_t *mesh_model, uint16_t company_id, mesh_health_fault_t * fault_state);
|
||||
|
||||
/*
|
||||
* @brief Set fault
|
||||
|
Loading…
x
Reference in New Issue
Block a user