Changeset 580
- Timestamp:
- 05/08/08 16:32:28 (1 week ago)
- Files:
-
- nano-RK/projects/SAMPL/app_pkt_handlers/ff_basic_sensor_pkt.c (modified) (1 diff)
- nano-RK/projects/SAMPL/client/main.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nano-RK/projects/SAMPL/app_pkt_handlers/ff_basic_sensor_pkt.c
r576 r580 65 65 66 66 val=nrk_set_status(fd,SENSOR_SELECT,AUDIO_P2P); 67 val=nrk_read(fd,&tmp, 1);67 val=nrk_read(fd,&tmp,2); 68 68 if(tmp>255) tmp=255; 69 69 s.sound_level=tmp; nano-RK/projects/SAMPL/client/main.c
r563 r580 257 257 258 258 while (1) { 259 nrk_led_clr (GREEN_LED); 259 260 // Wait until an RX packet is received 260 261 val = bmac_wait_until_rx_pkt (); … … 265 266 p2p_flag=0; 266 267 // Get the RX packet 267 nrk_led_set (GREEN_LED);268 if(admin_debug_flag==1) nrk_led_set (GREEN_LED); 268 269 local_rx_buf = bmac_rx_pkt_get (&rx_buf_len, &rssi); 269 270 … … 314 315 } 315 316 #endif 316 nrk_led_clr (GREEN_LED);317 317 318 318 // Service Packet … … 445 445 446 446 printf ("ff tx task PID=%d\r\n", nrk_get_pid ()); 447 admin_debug_flag= 1;447 admin_debug_flag=0; 448 448 // Wait until the tx_task starts up bmac 449 449 // This should be called by all tasks using bmac that … … 577 577 nrk_kprintf (PSTR ("Send P2P packet...\r\n")); 578 578 #endif 579 nrk_led_set (RED_LED);579 if(admin_debug_flag==1) nrk_led_set (RED_LED); 580 580 check_period.secs = 0; 581 581 check_period.nano_secs = p2p_pkt.check_rate * NANOS_PER_MS;
