Skip to content

Commit ffa18d1

Browse files
committed
Actually call factory_presets_cb during a reset
1 parent d4d9d24 commit ffa18d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/oc_knx_dev.c

+5
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,11 @@ oc_knx_device_storage_reset(size_t device_index, int reset_mode)
14031403
(void)device_index;
14041404
(void)reset_mode;
14051405

1406+
oc_factory_presets_t *presets = oc_get_factory_presets_cb();
1407+
if (presets && presets->cb) {
1408+
presets->cb(0, presets->data);
1409+
}
1410+
14061411
char buf[2] = "";
14071412
int zero = 0;
14081413
uint32_t ffff = 0xffff;

0 commit comments

Comments
 (0)