mesh: explicitly store num steps for generic level/on/off server

This commit is contained in:
Matthias Ringwald 2019-11-14 11:16:05 +01:00
parent 753e6a2cff
commit 43e3439045
2 changed files with 3 additions and 0 deletions

View File

@ -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){

View File

@ -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;