From d834f40c1014ac8926af9aaadc434a49e632b000 Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 8 Mar 2020 21:38:11 +0100 Subject: Do not copy LittleVgl object in DislayApp, use reference instead. Make Cst816s, SpiMaster and St7789 not copiable and not movable --- src/drivers/SpiMaster.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/drivers/SpiMaster.h') diff --git a/src/drivers/SpiMaster.h b/src/drivers/SpiMaster.h index 82042bdf..362f480c 100644 --- a/src/drivers/SpiMaster.h +++ b/src/drivers/SpiMaster.h @@ -26,6 +26,11 @@ namespace Pinetime { }; SpiMaster(const SpiModule spi, const Parameters& params); + SpiMaster(const SpiMaster&) = delete; + SpiMaster& operator=(const SpiMaster&) = delete; + SpiMaster(SpiMaster&&) = delete; + SpiMaster& operator=(SpiMaster&&) = delete; + bool Init(); bool Write(const uint8_t* data, size_t size); -- cgit v1.2.3-70-g09d2