Fixed code style and removed forgotten pritf's

This commit is contained in:
Carlos Pérez Penichet 2018-10-25 11:49:20 +02:00
parent 79a4fe33a6
commit c6770112af
2 changed files with 12 additions and 14 deletions

View File

@ -415,13 +415,11 @@ set_test_mode(uint8_t enable, uint8_t modulated)
was_on = (mode == RADIO_POWER_MODE_ON);
off();
prev_FRMCTRL0 = REG(RFCORE_XREG_FRMCTRL0);
// This constantly transmits random data
printf("FRMCTRL0: %08X\n", (unsigned int)prev_FRMCTRL0);
/* This constantly transmits random data */
REG(RFCORE_XREG_FRMCTRL0) = 0x00000042;
if(!modulated) {
prev_MDMTEST1 = REG(RFCORE_XREG_MDMTEST1);
printf("MDMTEST1: %08X\n", (unsigned int)prev_MDMTEST1);
// ...adding this we send an unmodulated carrier instead
/* ...adding this we send an unmodulated carrier instead */
REG(RFCORE_XREG_MDMTEST1) = 0x00000018;
}
CC2538_RF_CSP_ISTXON();