Skip to content

Commit

Permalink
[modules] gps_ubx_ucenter: only send DEBUG message if DEBUG_GPS_UBX_U…
Browse files Browse the repository at this point in the history
…CENTER
  • Loading branch information
flixr committed Mar 25, 2013
1 parent 68d07e6 commit e43b35b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sw/airborne/modules/gps/gps_ubx_ucenter.c
Expand Up @@ -359,7 +359,9 @@ static bool_t gps_ubx_ucenter_configure(uint8_t nr)
gps_ubx_ucenter.replies[3] = gps_ubx_ucenter.sw_ver_l;
gps_ubx_ucenter.replies[4] = gps_ubx_ucenter.hw_ver_h;
gps_ubx_ucenter.replies[5] = gps_ubx_ucenter.hw_ver_l;
#if DEBUG_GPS_UBX_UCENTER
DOWNLINK_SEND_DEBUG(DefaultChannel, DefaultDevice,6,gps_ubx_ucenter.replies);
#endif

//////////////////////////////////
// Actual configuration start
Expand Down Expand Up @@ -407,8 +409,10 @@ static bool_t gps_ubx_ucenter_configure(uint8_t nr)
UbxSend_CFG_CFG(0x00000000,0xffffffff,0x00000000);
break;
case 16:
#if DEBUG_GPS_UBX_UCENTER
// Debug Downlink the result of all configuration steps: see messages
DOWNLINK_SEND_DEBUG(DefaultChannel, DefaultDevice,GPS_UBX_UCENTER_CONFIG_STEPS,gps_ubx_ucenter.replies);
#endif
return FALSE;
default:
break;
Expand Down

0 comments on commit e43b35b

Please sign in to comment.