define or delete missing move/copy ctors

This commit is contained in:
Leonetienne
2025-12-14 19:28:41 +01:00
parent fd218f0358
commit 0405df14fe
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -8,6 +8,8 @@ class AdafruitPWMBoard
{
public:
AdafruitPWMBoard(const uint8_t addr, const uint8_t pwmFreq);
AdafruitPWMBoard(const AdafruitPWMBoard& other) = delete;
AdafruitPWMBoard(AdafruitPWMBoard&&) noexcept = default;
Adafruit_PWMServoDriver& get() noexcept { return hwif; };
const Adafruit_PWMServoDriver& get() const noexcept { return hwif; };