summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c b/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c
index 94ffcdf195..12058eba03 100644
--- a/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c
+++ b/firmware/target/arm/tms320dm320/sansa-connect/avr-sansaconnect.c
@@ -376,6 +376,7 @@ static bool avr_run_command(uint8_t opcode, uint8_t *data, size_t data_length)
IO_SERIAL1_TX_ENABLE = 0x0001;
avr_hid_select();
+ udelay(10);
IO_SERIAL1_TX_DATA = CMD_SYNC;
spi_read_byte();
@@ -660,7 +661,7 @@ static void read_monotime(void)
if ((t1 == t2) || (t1 + 1 == t2))
{
int flags = disable_irq_save();
- monotime_value = t1;
+ monotime_value = t2;
monotime_value_tick = current_tick;
restore_irq(flags);
monotime_available = true;