From a97ce8b5347a182da6b36ad2d9daa5b705120af7 Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 26 Nov 2005 17:55:19 +0000 Subject: [PATCH] fixes to new repeated start --- detpic/i2clib.asm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/detpic/i2clib.asm b/detpic/i2clib.asm index 1ebebb3..addff1c 100644 --- a/detpic/i2clib.asm +++ b/detpic/i2clib.asm @@ -288,15 +288,15 @@ i2cm_read_start ;---------- m_read_start_busy bt_f_if1 st, st_awaiting - bra m_read_another + bra m_read_different panic morse_SR ;---------- -m_read_another +m_read_different ; Main program would like to address another slave. mov_wf slave_next bra_z m_improper_slave - bra m_read_ack + bra i2cm_read_done ;---------- m_event_done_addressing_read @@ -359,6 +359,7 @@ m_event_done_acking bra_z m_stop ; ok, we want to read another: mov_wf slave + clr_f slave_next bs_f st, st_reading bs_f SSPCON2, RSEN bra m_start_or_restart -- 2.30.2