When using an I2C master, the file won't compile without the change,
because BUSY is undefined

diff --git a/contrib/nuttx/arch/arm/src/samd2l2/sam_i2c_master.c 
b/contrib/nuttx/arch/arm/src/samd2l2/sam_i2c_master.c
index 0874a66716..588b355336 100644
--- a/contrib/nuttx/arch/arm/src/samd2l2/sam_i2c_master.c
+++ b/contrib/nuttx/arch/arm/src/samd2l2/sam_i2c_master.c
@@ -998,7 +998,7 @@ static int sam_i2c_transfer(FAR struct i2c_master_s *dev,
 
   /* Initiate the message transfer */
 
-  ret = -BUSY;
+  ret = -EBUSY;
 
   /* Initiate the transfer.  The rest will be handled from interrupt logic.
    * Interrupts must be disabled to prevent re-entrance from the interrupt

-- 
B.Walter <be...@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.

Reply via email to