From 40c52784ad415495a132ee854b3bc4272af4f910 Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Mon, 1 Jun 2015 10:56:46 +0100 Subject: [PATCH] spi.hpp: mraa_spi_write_buf_word cannot be used from SWIG bindings In order for this to work we need to provide a typemap for it Signed-off-by: Brendan Le Foll --- api/mraa/spi.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/mraa/spi.hpp b/api/mraa/spi.hpp index 13bcd30..3641e9d 100644 --- a/api/mraa/spi.hpp +++ b/api/mraa/spi.hpp @@ -140,6 +140,7 @@ class Spi return mraa_spi_write_buf(m_spi, txBuf, length); } +#ifndef SWIG /** * Write buffer of bytes to SPI device The pointer return has to be * free'd by the caller. It will return a NULL pointer in cases of @@ -154,6 +155,7 @@ class Spi { return mraa_spi_write_buf_word(m_spi, txBuf, length); } +#endif #ifndef SWIG /**