Skip to content

Commit

Permalink
Logging added
Browse files Browse the repository at this point in the history
  • Loading branch information
on4akh committed Feb 21, 2014
1 parent f285c26 commit de54e71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ void *dmrListener(void *f){
if (sMaster.online){
sendto(sMaster.sockfd,webUserInfo,strlen(webUserInfo),0,(struct sockaddr *)&sMaster.address,sizeof(sMaster.address));
}
//if (dstId == echoId) echoTest()
toSend = checkTalkGroup(dstId,slot,callType);
if (toSend.repeater == false){
block[slot] = true;
Expand Down Expand Up @@ -235,6 +236,9 @@ void *dmrListener(void *f){
}
}
}
else{
syslog(LOG_NOTICE,"[%i-%s]Incomming traffic on slot %i, but DMR not IDLE",baseDmrPort + repPos,repeaterList[repPos].callsign,slot);
}
}
else{
response[0] = 0x41;
Expand Down
3 changes: 3 additions & 0 deletions smaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ void *sMasterThread(){
}
}
}
else{
syslog(LOG_NOTICE,"[sMaster]Incomming traffic on slot %i, but DMR not IDLE",slot);
}
}
}
else{
Expand Down

0 comments on commit de54e71

Please sign in to comment.