<div dir="ltr">Thanks. I suspected that was the issue but wouldn't have<div style="">dared changed the code without asking. :)</div><div style=""><br></div><div style="">Hopefully you are enjoying your holidays.</div><div style=""><br></div><div style="">--joel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 29, 2015 at 6:09 PM, Jan Sommer <span dir="ltr"><<a href="mailto:soja-lists@aries.uberspace.de" target="_blank">soja-lists@aries.uberspace.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Assignment was misplaced by one line.<br>
---<br>
 c/src/lib/libbsp/arm/raspberrypi/i2c/i2c.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/c/src/lib/libbsp/arm/raspberrypi/i2c/i2c.c b/c/src/lib/libbsp/arm/raspberrypi/i2c/i2c.c<br>
index 6d9a2cd..9bf90ec 100644<br>
--- a/c/src/lib/libbsp/arm/raspberrypi/i2c/i2c.c<br>
+++ b/c/src/lib/libbsp/arm/raspberrypi/i2c/i2c.c<br>
@@ -91,8 +91,8 @@ static int rpi_i2c_bus_transfer(rpi_i2c_bus *bus)<br>
       BCM2835_REG(BCM2835_I2C_C) |= (1 << 9);<br>
<br>
       /* Sleep until the TX FIFO has free space for a new write. */<br>
+      bus->task_id = rtems_task_self();<br>
       if (<br>
-          bus->task_id = rtems_task_self();<br>
           rtems_event_transient_receive(RTEMS_WAIT, bus->base.timeout) !=<br>
           RTEMS_SUCCESSFUL<br>
       ) {<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.0<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</font></span></blockquote></div><br></div>