From 504f500fae609b3dd07f63876a1203a25b5cca95 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 16 Jan 2021 15:59:55 +1100 Subject: [PATCH] AP_Common: added get_writeable_string to ExpandingString --- libraries/AP_Common/ExpandingString.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Common/ExpandingString.h b/libraries/AP_Common/ExpandingString.h index 54a124def0..573cb34313 100644 --- a/libraries/AP_Common/ExpandingString.h +++ b/libraries/AP_Common/ExpandingString.h @@ -29,6 +29,9 @@ public: uint32_t get_length(void) const { return used; } + char *get_writeable_string(void) const { + return buf; + } // print into the string void printf(const char *format, ...) FMT_PRINTF(2,3);