From bcf4b18c55e2227bee150b397cd421e6a2a95a28 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sat, 20 Jul 2019 14:46:10 +0200 Subject: [PATCH] mesh: fix generic_level_status_handler --- src/mesh/mesh_generic_level_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/mesh_generic_level_client.c b/src/mesh/mesh_generic_level_client.c index 4060e2fe5..7ccbedeed 100644 --- a/src/mesh/mesh_generic_level_client.c +++ b/src/mesh/mesh_generic_level_client.c @@ -245,7 +245,7 @@ static void generic_level_status_handler(mesh_model_t *mesh_model, mesh_pdu_t * little_endian_store_16(event, pos, present_value); pos += 2; - little_endian_store_16(event, pos, present_value); + little_endian_store_16(event, pos, target_value); pos += 2; little_endian_store_32(event, pos, (uint32_t) mesh_access_time_gdtt2ms(remaining_time_gdtt));