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-12-21 19:08:09 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-12-21 19:08:09 +0300
commit3ac3345333659785dcd21088ae0b9b93ec914a4d (patch)
tree5711a5dd74677bbcbbd2bf1cc485a27f8c9af75a
parent13f51fcd3b22ef9dc4798607d8b27f185d7358b5 (diff)
Replace '_' by '-' when generating macro name from event type name
-rw-r--r--src/Platform/Event.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Platform/Event.cpp b/src/Platform/Event.cpp
index 022836db..7e4c965e 100644
--- a/src/Platform/Event.cpp
+++ b/src/Platform/Event.cpp
@@ -94,6 +94,7 @@ inline Event::Event(Event *_ecv_null p_next, EventType et, uint16_t p_param, uin
if (ep != nullptr && ep->isBeingProcessed)
{
fname.copy(ep->type.ToString());
+ fname.Replace('_', '-'); // ths only replaces the first instance, but there should not be more than one underscore in the event type name
fname.cat(".g");
}
}