mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
mesh: explicitly store num steps for generic level/on/off server
This commit is contained in:
parent
753e6a2cff
commit
43e3439045
@ -378,6 +378,7 @@ void mesh_access_transitions_setup(mesh_transition_t * transition, mesh_model_t
|
||||
transition->step_duration_ms = mesh_access_transitions_step_ms_from_gdtt(transition_time_gdtt);
|
||||
transition->remaining_delay_time_ms = delay_gdtt * 5;
|
||||
transition->remaining_transition_time_ms = num_steps * transition->step_duration_ms;
|
||||
transition->num_steps = num_steps;
|
||||
}
|
||||
|
||||
void mesh_access_transitions_add(mesh_transition_t * transition){
|
||||
|
@ -134,6 +134,8 @@ typedef struct mesh_transition {
|
||||
uint16_t src_address;
|
||||
uint16_t dst_address;
|
||||
|
||||
uint8_t num_steps;
|
||||
|
||||
uint32_t step_duration_ms;
|
||||
uint32_t phase_start_ms;
|
||||
uint32_t remaining_delay_time_ms;
|
||||
|
Loading…
x
Reference in New Issue
Block a user