Skip to content

Commit

Permalink
V1.4.2
Browse files Browse the repository at this point in the history
* Removed leftover make clean option
* Fix warnings
  • Loading branch information
mckset authored Dec 22, 2023
1 parent 4c5c6a0 commit 38c6fbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 6 additions & 5 deletions KD100.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
V1.4.1
V1.4.2
https://github.com/mckset/KD100.git
KD100 Linux driver for X11 desktops
Other devices can be supported by modifying the code to read data received by the device
Expand All @@ -10,7 +10,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include<unistd.h>
#include <unistd.h>
#include <pwd.h>

int keycodes[] = {1, 2, 4, 8, 16, 32, 64, 128, 129, 130, 132, 136, 144, 160, 192, 256, 257, 258, 260, 641, 642};
Expand Down Expand Up @@ -422,7 +422,7 @@ void GetDevice(int debug, int accept, int dry){

void Handler(char* key, int type){
if (strcmp(key, "NULL") == 0)
return 0;
return;

char* cmd = "";
char mouse = 'a';
Expand Down Expand Up @@ -455,7 +455,7 @@ void Handler(char* key, int type){
temp[strlen(cmd)+2] = '\0';
}
system(temp);
}
}
}

char* Substring(char* in, int start, int end){
Expand Down Expand Up @@ -510,7 +510,8 @@ int main(int args, char *in[]){
}
}

libusb_context **ctx;

libusb_context *ctx;
err = libusb_init(&ctx);
if (err < 0){
printf("Error: %d\n", err);
Expand Down
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ install:
else\
${CC} KD100.c ${FLAGS} -o KD100;\
fi


clean:
rm -f KD100.c

0 comments on commit 38c6fbd

Please sign in to comment.