From 12118308dc7619c3ab634feb7c5787595e43cbf8 Mon Sep 17 00:00:00 2001 From: smckown Date: Wed, 22 Apr 2009 00:33:44 +0000 Subject: [PATCH] Use the byte passed into Interrupt.rx() rather calling into hw again. --- tos/chips/msp430/usci/Msp430SpiP.nc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); -- 2.39.2