Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Coenen <manuel@duet3d.com>2020-12-01 15:53:43 +0300
committerManuel Coenen <manuel@duet3d.com>2020-12-01 15:53:43 +0300
commita23f149605761905479ccaa602262aa6739d72b9 (patch)
treeb7034ee90d076c92d3827d1e76e0144147263853 /src/bossa/Device.h
parentd1064508b63689ffee122958130a18d55fd3fbbe (diff)
Add noexcept/THROWS() everywhere
Improve error messages Remove unused code blocks
Diffstat (limited to 'src/bossa/Device.h')
-rw-r--r--src/bossa/Device.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/bossa/Device.h b/src/bossa/Device.h
index c0603c68..9509acb4 100644
--- a/src/bossa/Device.h
+++ b/src/bossa/Device.h
@@ -41,7 +41,7 @@ class Device
public:
enum Family {
FAMILY_NONE,
-#if 0
+#if ORIGINAL_BOSSA_CODE
FAMILY_SAM7S,
FAMILY_SAM7SE,
@@ -56,7 +56,7 @@ public:
FAMILY_SAM3A,
#endif
FAMILY_SAM4S,
-#if 0
+#if ORIGINAL_BOSSA_CODE
FAMILY_SAM4E,
FAMILY_SAM9XE,
@@ -77,23 +77,25 @@ public:
#endif
};
- Device(Samba& samba) : _samba(samba), _flash(nullptr), _family(FAMILY_NONE) {}
+ Device(Samba& samba) noexcept : _samba(samba), _flash(nullptr), _family(FAMILY_NONE) {}
virtual ~Device() { delete _flash; }
- void create();
+ void create() THROWS(GCodeException);
- Family getFamily() { return _family; }
+ Family getFamily() noexcept { return _family; }
- Flash* getFlash() { return _flash; }
+ Flash* getFlash() noexcept { return _flash; }
- void reset();
+ void reset() THROWS(GCodeException);
private:
Samba& _samba;
Flash* _flash;
Family _family;
+#if ORIGINAL_BOSSA_CODE
void readChipId(uint32_t& chipId, uint32_t& extChipId);
+#endif
};
#endif // _DEVICE_H