From: smckown Date: Wed, 22 Apr 2009 00:33:44 +0000 (+0000) Subject: Use the byte passed into Interrupt.rx() rather calling into hw again. X-Git-Tag: release/2.1.0-1~17 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=12118308dc7619c3ab634feb7c5787595e43cbf8 Use the byte passed into Interrupt.rx() rather calling into hw again. --- diff --git a/tos/chips/msp430/usci/Msp430SpiP.nc b/tos/chips/msp430/usci/Msp430SpiP.nc index eb217b3f..e4464312 100644 --- a/tos/chips/msp430/usci/Msp430SpiP.nc +++ b/tos/chips/msp430/usci/Msp430SpiP.nc @@ -223,9 +223,7 @@ implementation { async event void Interrupts.rx(uint8_t byte) { if (m_rxBuf) - m_rxBuf[m_pos - 1] = call Registers.getRxbuf(); - else - call Registers.getRxbuf(); + m_rxBuf[m_pos - 1] = byte; if (m_pos < m_len) sendData();