Skip to content
Snippets Groups Projects
Commit b5cb68bd authored by Peter Kietzmann's avatar Peter Kietzmann Committed by GitHub
Browse files

Merge pull request #5676 from jasonatran/cc2538_debug

cpu/cc2538: fix debug statements
parents 66b36397 4136b959
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,7 @@ void cc2538_set_chan(unsigned int chan) ...@@ -184,7 +184,7 @@ void cc2538_set_chan(unsigned int chan)
void cc2538_set_freq(unsigned int MHz) 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) { if (MHz < IEEE802154_MIN_FREQ) {
MHz = IEEE802154_MIN_FREQ; MHz = IEEE802154_MIN_FREQ;
...@@ -250,6 +250,6 @@ void cc2538_set_tx_power(int dBm) ...@@ -250,6 +250,6 @@ void cc2538_set_tx_power(int dBm)
dBm = OUTPUT_POWER_MAX; 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]; RFCORE_XREG_TXPOWER = power_lut[dBm - OUTPUT_POWER_MIN];
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment