Skip to content

Commit

Permalink
Merge pull request #5676 from jasonatran/cc2538_debug
Browse files Browse the repository at this point in the history
cpu/cc2538: fix debug statements
  • Loading branch information
PeterKietzmann committed Jul 26, 2016
2 parents 66b3639 + 4136b95 commit b5cb68b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu/cc2538/radio/cc2538_rf_getset.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ void cc2538_set_chan(unsigned int chan)

void cc2538_set_freq(unsigned int MHz)
{
DEBUG("%s(%u): Setting frequency to ", __FUNCTION__, freq);
DEBUG("%s(%u): Setting frequency to ", __FUNCTION__, MHz);

if (MHz < IEEE802154_MIN_FREQ) {
MHz = IEEE802154_MIN_FREQ;
Expand Down Expand Up @@ -250,6 +250,6 @@ void cc2538_set_tx_power(int dBm)
dBm = OUTPUT_POWER_MAX;
}

DEBUG("%idBm (range %i-%i dBm)\n", OUTPUT_POWER_MIN, OUTPUT_POWER_MAX);
DEBUG("%idBm (range %i-%i dBm)\n", dBm, OUTPUT_POWER_MIN, OUTPUT_POWER_MAX);
RFCORE_XREG_TXPOWER = power_lut[dBm - OUTPUT_POWER_MIN];
}

0 comments on commit b5cb68b

Please sign in to comment.