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:
authorChristian Hammacher <bmasterc@gmail.com>2021-10-25 12:47:00 +0300
committerChristian Hammacher <bmasterc@gmail.com>2021-10-25 12:47:00 +0300
commit5e9d621403eb54b00a84d4824b75c056121730aa (patch)
treecbd42719a0789aaf67ba6a1291f18d7e2e0ccdcb /src/GCodes
parent4fab707f0c205bb55e1c98a72be37b1069dc7ba3 (diff)
Added missing cases for new SBC data types
Diffstat (limited to 'src/GCodes')
-rw-r--r--src/GCodes/GCodeBuffer/BinaryParser.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/GCodes/GCodeBuffer/BinaryParser.cpp b/src/GCodes/GCodeBuffer/BinaryParser.cpp
index 7e851442..8d98102d 100644
--- a/src/GCodes/GCodeBuffer/BinaryParser.cpp
+++ b/src/GCodes/GCodeBuffer/BinaryParser.cpp
@@ -756,6 +756,7 @@ void BinaryParser::WriteParameters(const StringRef& s, bool quoteStrings) const
break;
case DataType::String:
case DataType::Expression:
+ case DataType::DateTime:
{
char string[param->intValue + 1];
memcpy(string, val, param->intValue);
@@ -805,6 +806,16 @@ void BinaryParser::WriteParameters(const StringRef& s, bool quoteStrings) const
val += sizeof(uint8_t);
}
break;
+ case DataType::ULong:
+ {
+ uint64_t ulVal;
+ memcpy(reinterpret_cast<char *>(&ulVal), val, sizeof(uint64_t));
+ s.catf("%" PRIu64, ulVal);
+ break;
+ }
+ case DataType::Null:
+ s.cat("null");
+ break;
}
}
}