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:
authorDavid Crocker <dcrocker@eschertech.com>2021-10-31 20:13:29 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-10-31 20:13:29 +0300
commit9b90cdf445b9893eb93c02317ef87965ec60657f (patch)
tree4d586fe0b033528dcfaa31477dec2e2cef716c88 /src/Fans/Fan.h
parentc0b1908a673e62e8553264f31057843d11a27bc5 (diff)
Annotations for static analysis
Diffstat (limited to 'src/Fans/Fan.h')
-rw-r--r--src/Fans/Fan.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fans/Fan.h b/src/Fans/Fan.h
index b1af0d11..74da625f 100644
--- a/src/Fans/Fan.h
+++ b/src/Fans/Fan.h
@@ -21,7 +21,7 @@ class GCodeBuffer;
class Fan INHERIT_OBJECT_MODEL
{
public:
- Fan(unsigned int fanNum) noexcept;
+ explicit Fan(unsigned int fanNum) noexcept;
Fan(const Fan&) = delete;
virtual ~Fan() noexcept { }
@@ -56,7 +56,7 @@ public:
GCodeResult SetPwm(float speed, const StringRef& reply) noexcept;
bool HasMonitoredSensors() const noexcept { return sensorsMonitored.IsNonEmpty(); }
unsigned int GetNumber() const { return fanNumber; }
- const char *GetName() const noexcept { return name.c_str(); }
+ const char *_ecv_array GetName() const noexcept { return name.c_str(); }
#if HAS_MASS_STORAGE || HAS_SBC_INTERFACE
bool WriteSettings(FileStore *f, size_t fanNum) const noexcept; // save the settings of this fan if it isn't thermostatic