Skip to content

Commit ef3b95a

Browse files
committed
Merge branch 'dev'
2 parents 015da9d + fa8d417 commit ef3b95a

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ pump model number ends with 'WW' then you need a 'WorldWide' firmware:
2929

3030
make -f Makefile.uart1_alt2 RADIO_LOCALE=WW
3131

32+
# cc111x UART1_alt2 connected to the Intel Edison UART_1
33+
34+
P1.4 - CT / SSN -> UART_1_RTS (GP129) (pin 63)
35+
P1.5 - RT / SCK -> UART_1_CTS (GP128) (pin 65)
36+
P1.6 - TX / MOSI -> UART_1_RX (GP130) (pin 61)
37+
P1.7 - RX / MISO -> UART_1_TX (GP131) (pin 46)
38+
39+
3240
# UART on the WirelessThings ERF stick
3341

3442
Perform the build. The output file will be stored at output/uart0_alt1_SRF_ERF_US/uart0_alt1_SRF_ERF_US.hex

commands.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void cmd_get_state() {
3838
}
3939

4040
void cmd_get_version() {
41-
serial_tx_str("subg_rfspy 0.7");
41+
serial_tx_str("subg_rfspy 0.8");
4242
}
4343

4444
void do_cmd(uint8_t cmd) {

radio.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,12 @@ void rftxrx_isr(void) __interrupt RFTXRX_VECTOR {
8989
if (packet_count == 0) {
9090
packet_count = 1;
9191
}
92-
radio_rx_buf[radio_rx_buf_len] = d_byte;
93-
radio_rx_buf_len++;
92+
if (radio_rx_buf_len < MAX_PACKET_LEN) {
93+
radio_rx_buf[radio_rx_buf_len] = d_byte;
94+
radio_rx_buf_len++;
95+
} else {
96+
// Overflow
97+
}
9498
if (d_byte == 0) {
9599
RFST = RFST_SIDLE;
96100
while(MARCSTATE!=MARC_STATE_IDLE);

0 commit comments

Comments
 (0)