New daemon option nodevicecheck added.

This commit is contained in:
Roland Jax
2013-11-29 15:03:07 +01:00
parent 35f980d4e6
commit 11aa98c4fa
6 changed files with 75 additions and 44 deletions
+10 -1
View File
@@ -52,6 +52,7 @@ static struct send_data send_data;
static struct recv_data recv_data;
static int nodevicecheck = NO;
static int rawdump = NO;
static int showraw = NO;
@@ -74,6 +75,14 @@ static FILE *rawfp = NULL;
void
eb_set_nodevicecheck(int check)
{
nodevicecheck = check;
}
void
eb_set_rawdump(int dump)
{
@@ -185,7 +194,7 @@ eb_serial_valid()
{
int serial;
if (ioctl(sfd, TIOCMGET, &serial) < 0)
if (ioctl(sfd, TIOCMGET, &serial) < 0 && nodevicecheck == NO)
return -1;
else
return 0;
+9
View File
@@ -64,6 +64,15 @@ struct recv_data {
/**
* @brief set nodevicecheck
* @param [in] YES | NO
* @return none
*/
void eb_set_nodevicecheck(int check);
/**
* @brief set rawdump
* @param [in] YES | NO