ASSERT( state == STATE_BUSY_TX_2_RX_ON );
}
else
- ASSERT(FALSE);
+ {
+#ifdef RF230_DEBUG
+// ASSERT(FALSE);
+ if( call DiagMsg.record() )
+ {
+ call DiagMsg.str("assert pll");
+ call DiagMsg.uint16(call RadioAlarm.getNow());
+ call DiagMsg.hex8(readRegister(RF230_TRX_STATUS));
+ call DiagMsg.hex8(readRegister(RF230_TRX_STATE));
+ call DiagMsg.hex8(irq);
+ call DiagMsg.uint8(state);
+ call DiagMsg.uint8(cmd);
+ call DiagMsg.send();
+ }
+#endif
+ }
}
if( irq & RF230_IRQ_RX_START )
cmd = CMD_DOWNLOAD;
}
else
- ASSERT(FALSE);
+ {
+#ifdef RF230_DEBUG
+// ASSERT(FALSE);
+ if( call DiagMsg.record() )
+ {
+ call DiagMsg.str("assert trx");
+ call DiagMsg.uint16(call RadioAlarm.getNow());
+ call DiagMsg.hex8(readRegister(RF230_TRX_STATUS));
+ call DiagMsg.hex8(readRegister(RF230_TRX_STATE));
+ call DiagMsg.hex8(irq);
+ call DiagMsg.uint8(state);
+ call DiagMsg.uint8(cmd);
+ call DiagMsg.send();
+ }
+#endif
+ }
}
}
}