dect_cli: delete old irq debug code
git-svn-id: https://dedected.org/svn/trunk@25 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
This commit is contained in:
parent
0caf39efd3
commit
ee1844bf24
|
@ -29,8 +29,6 @@
|
|||
#include "com_on_air_user.h"
|
||||
#include "dect_cli.h"
|
||||
|
||||
//#define DUMP_IRQ_COUNT_ONCE_PER_SEC
|
||||
|
||||
struct cli_info cli;
|
||||
|
||||
|
||||
|
@ -590,12 +588,6 @@ void mainloop(void)
|
|||
|
||||
int ret;
|
||||
|
||||
#ifdef DUMP_IRQ_COUNT_ONCE_PER_SEC
|
||||
#define COA_IOCTL_COUNT_IRQ 0xF002
|
||||
uint32_t lasttime = time(NULL);
|
||||
#endif
|
||||
|
||||
|
||||
while (0xDEC + 'T')
|
||||
{
|
||||
tv.tv_sec = 1;
|
||||
|
@ -635,19 +627,6 @@ void mainloop(void)
|
|||
if (FD_ISSET(cli.fd, &rfd))
|
||||
process_dect_data();
|
||||
|
||||
#ifdef DUMP_IRQ_COUNT_ONCE_PER_SEC
|
||||
if (!(cli.mode & MODE_STOP))
|
||||
if (time(NULL) >= lasttime + 1)
|
||||
{
|
||||
if (ioctl(cli.fd, COA_IOCTL_COUNT_IRQ, NULL))
|
||||
{
|
||||
printf("couldn't ioctl()\n");
|
||||
exit(1);
|
||||
}
|
||||
lasttime = time(NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
if( (cli.hop) &&
|
||||
( (cli.mode & MODE_FPSCAN) ||
|
||||
(cli.mode & MODE_PPSCAN) ||
|
||||
|
|
Loading…
Reference in New Issue