Skip to content

Commit

Permalink
chore: setting to init before destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-burger committed Sep 24, 2024
1 parent 828cd98 commit fba7b24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,8 @@ int ec_open(ec_t *pec, struct hw_common *phw, int eeprom_log) {
int ec_close(ec_t *pec) {
assert(pec != NULL);

ec_set_state(pec, EC_STATE_INIT);

#if LIBETHERCAT_MBX_SUPPORT_EOE == 1
ec_log(10, "MASTER_CLOSE", "detroying tun device...\n");
ec_eoe_destroy_tun(pec);
Expand Down

0 comments on commit fba7b24

Please sign in to comment.