changeset 2024 | 08d67a0af2c1 |
parent 2022 | c2295d311402 |
child 2028 | 5132c497918c |
2022:c2295d311402 | 2024:08d67a0af2c1 |
---|---|
98 void __cleanup_%(location)s(void) |
98 void __cleanup_%(location)s(void) |
99 { |
99 { |
100 if (rt_fd >= 0) { |
100 if (rt_fd >= 0) { |
101 rt_dev_close(rt_fd); |
101 rt_dev_close(rt_fd); |
102 } |
102 } |
103 //release master |
|
104 ecrt_release_master(master); |
|
103 } |
105 } |
104 |
106 |
105 void __retrieve_%(location)s(void) |
107 void __retrieve_%(location)s(void) |
106 { |
108 { |
107 // receive ethercat |
109 // receive ethercat |