Skip to content

Commit 846dc48

Browse files
committed
fix: pikeos device name parsing
1 parent 2fcc481 commit 846dc48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ int hw_open(hw_t *phw, struct ec *pec, const osal_char_t *devname, int prio, int
136136
#endif
137137
#if LIBETHERCAT_BUILD_DEVICE_PIKEOS == 1
138138
if (strncmp(ifname, "pikeos:", 4) == 0) {
139-
ifname = &ifname[4];
139+
ifname = &ifname[7];
140140

141141
ec_log(10, "HW_OPEN", "Opening interface as pikeos: %s\n", ifname);
142142
ret = hw_device_pikeos_open(phw, ifname);

0 commit comments

Comments
 (0)