Skip to content

Commit

Permalink
Reset fid in factory reset
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankZRS committed Feb 26, 2024
1 parent 62455b5 commit 236f883
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/oc_knx_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,7 @@ oc_knx_device_storage_reset(size_t device_index, int reset_mode)
// writing the empty values
oc_storage_erase(KNX_STORAGE_IA);
oc_storage_erase(KNX_STORAGE_IID);
oc_storage_erase(KNX_STORAGE_FID);
oc_storage_erase(KNX_STORAGE_PM);
uint32_t port = 5683; // unicast communication
uint32_t mport = 5683; // multicast communication
Expand All @@ -1445,6 +1446,7 @@ oc_knx_device_storage_reset(size_t device_index, int reset_mode)
// set the other data to KNX defaults
device->ia = ffff;
device->iid = zero;
device->fid = zero;
device->port = port;
device->mport = mport;
oc_free_string(&device->hostname);
Expand Down

0 comments on commit 236f883

Please sign in to comment.