From 190bdc283e127990972f540983868fba06577345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jordan?= <3933856+andjordan@users.noreply.github.com> Date: Tue, 2 Jul 2024 09:12:51 +0200 Subject: [PATCH] chore: prevent accidental copies of DmaStm (#354) --- hal_st/stm32fxxx/DmaStm.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hal_st/stm32fxxx/DmaStm.hpp b/hal_st/stm32fxxx/DmaStm.hpp index 77cf921e..d30260de 100644 --- a/hal_st/stm32fxxx/DmaStm.hpp +++ b/hal_st/stm32fxxx/DmaStm.hpp @@ -276,6 +276,8 @@ namespace hal public: DmaStm(); ~DmaStm(); + DmaStm(const DmaStm& other) = delete; + DmaStm& operator=(const DmaStm& other) = delete; private: void ReserveStream(uint8_t dmaIndex, uint8_t streamIndex);