diff --git a/interfaces/spich.hpp b/interfaces/spich.hpp index 46e2daa..4555865 100644 --- a/interfaces/spich.hpp +++ b/interfaces/spich.hpp @@ -36,6 +36,7 @@ struct SPICH uint8_t* buffer, const uint8_t& len) { + // spiHwCH.takeMutex(); chipSelect.write(false); spiHwCH.tx(address); @@ -45,6 +46,7 @@ struct SPICH }; chipSelect.write(true); + // spiHwCH.releaseMutex(); }