diff options
author | Bernhard Tittelbach <xro@realraum.at> | 2012-05-20 04:15:27 +0000 |
---|---|---|
committer | Bernhard Tittelbach <xro@realraum.at> | 2012-05-20 04:15:27 +0000 |
commit | 7a9f3bf185fa5256e69de52c9d22b519e64bcf9a (patch) | |
tree | 47867721693db5dc59b6bbb7a8a9d6eb482cc0f9 /software/hhd70dongle/c1101lib.c | |
parent | gracefully ignore nonexisting or nonexecutable reset_func (diff) |
switch from IDLE _and_ RX to TX
git-svn-id: https://svn.spreadspace.org/mur.sat@456 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/hhd70dongle/c1101lib.c')
-rw-r--r-- | software/hhd70dongle/c1101lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/software/hhd70dongle/c1101lib.c b/software/hhd70dongle/c1101lib.c index 88c5c2f..7c309cd 100644 --- a/software/hhd70dongle/c1101lib.c +++ b/software/hhd70dongle/c1101lib.c @@ -396,9 +396,9 @@ void c1101_transmitData(char *buffer, unsigned int len) buffer += num_written; len -= num_written; c1101_state = c1101_getMARCState(); - if (c1101_state == 1) + if (c1101_state == 1 || (c1101_state >= 13 && c1101_state <= 15)) { - //from idle state, go to RX state + //from state IDLE or RX go to TX num_written = c1101_spi_strobe_command(SPIC1101_ADDR_STX); //~ usb_rawhid_send((uint8_t*)"Strobe STX",255); //~ debug_sprint_int16hex(debug_sb, num_written); |