summaryrefslogtreecommitdiff
path: root/usrp2/firmware/apps/app_common_v2.c
diff options
context:
space:
mode:
Diffstat (limited to 'usrp2/firmware/apps/app_common_v2.c')
-rw-r--r--usrp2/firmware/apps/app_common_v2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usrp2/firmware/apps/app_common_v2.c b/usrp2/firmware/apps/app_common_v2.c
index c498d3008..9f5fd94f1 100644
--- a/usrp2/firmware/apps/app_common_v2.c
+++ b/usrp2/firmware/apps/app_common_v2.c
@@ -422,6 +422,8 @@ handle_control_chan_frame(u2_eth_packet_t *pkt, size_t len)
const op_generic_t *gp = (const op_generic_t *) payload;
subpktlen = 0;
+ // printf("\nopcode = %d\n", gp->opcode);
+
switch(gp->opcode){
case OP_EOP: // end of subpackets
goto end_of_subpackets;
@@ -568,7 +570,7 @@ void
link_changed_callback(int speed)
{
link_is_up = speed != 0;
- hal_set_leds(link_is_up ? 0x20 : 0x0, 0x20);
+ hal_set_leds(link_is_up ? LED_RJ45 : 0x0, LED_RJ45);
printf("\neth link changed: speed = %d\n", speed);
}