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-04 18:37:15 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-10-04 18:37:15 +0300
commitdb7f42f07d3f616a5c5fdd15ae5fd86052ebbddd (patch)
tree670036eaaa2d65de857064afd21ba0db16601528 /src/Platform
parente9aec3423d1ed4d8d0a543ba0ca073770b7a4638 (diff)
Unique IDs are only reported in the OM if they are valid
Diffstat (limited to 'src/Platform')
-rw-r--r--src/Platform/Platform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp
index 2fcaeec9..ccb6b6a1 100644
--- a/src/Platform/Platform.cpp
+++ b/src/Platform/Platform.cpp
@@ -247,7 +247,7 @@ constexpr ObjectModelTableEntry Platform::objectModelTable[] =
#endif
{ "supportsDirectDisplay", OBJECT_MODEL_FUNC_NOSELF(SUPPORT_12864_LCD ? true : false), ObjectModelEntryFlags::verbose },
#if MCU_HAS_UNIQUE_ID
- { "uniqueId", OBJECT_MODEL_FUNC(self->uniqueId), ObjectModelEntryFlags::none },
+ { "uniqueId", OBJECT_MODEL_FUNC_IF(self->uniqueId.IsValid(), self->uniqueId), ObjectModelEntryFlags::none },
#endif
#if HAS_12V_MONITOR
{ "v12", OBJECT_MODEL_FUNC(self, 6), ObjectModelEntryFlags::live },