+ if (m_state == S_RECEIVING || m_state == S_RX_PENDING)
+ post configSyncTask();
+ }
+
+ task void configSyncTask()
+ {
+ if (call SpiResource.immediateRequest() == SUCCESS) {
+ call CC2420Config.sync(); /* put PIB changes into operation */
+ call SpiResource.release();
+ } else
+ post configSyncTask(); // spin (should be short time, until packet is received)