diff options
Diffstat (limited to 'samsung-ipc')
-rw-r--r-- | samsung-ipc/ipc_utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/samsung-ipc/ipc_utils.c b/samsung-ipc/ipc_utils.c index 3ca3879..0538387 100644 --- a/samsung-ipc/ipc_utils.c +++ b/samsung-ipc/ipc_utils.c @@ -32,6 +32,14 @@ #include <samsung-ipc.h> #include <ipc.h> +int ipc_seq_valid(unsigned char seq) +{ + if (seq == 0x00 || seq == 0xff) + return 0; + else + return 1; +} + const char *ipc_request_type_string(unsigned char type) { static char type_string[5] = { 0 }; |