We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1a9363 commit 168ac24Copy full SHA for 168ac24
1 file changed
src/emc/usr_intf/emcsh.cc
@@ -3212,8 +3212,8 @@ static int emc_pendant(ClientData /*clientdata*/,
3212
inBytes[4] = fgetc(inFile); // Status byte
3213
inBytes[2] = fgetc(inFile); // Horizontal movement
3214
inBytes[3] = fgetc(inFile); // Vertical Movement
3215
+ fclose(inFile);
3216
}
- fclose(inFile);
3217
3218
if (!strcmp(port, "/dev/psaux")) { // For PS/2
3219
inBytes[0] = (inBytes[4] & 0x01); // Left button
0 commit comments