Skip to content

Commit a480e71

Browse files
committed
tweak to output highlight and symbol to note value of named item
1 parent 81415f7 commit a480e71

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/Flux/flxSettingsSerial.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,12 @@ bool flxSettingsSerial::drawPage(flxObject *pCurrent, flxProperty *pProp)
150150
drawPageHeader(pCurrent, pProp->name());
151151

152152
// Editing Intro
153-
Serial.printf("\tEdit the value of `%s` - data type <%s>\n\r\n\r", pProp->name(), flxGetTypeName(pProp->type()));
153+
154+
Serial.printf("\tEdit the value of ");
155+
flxSerial.textToWhite();
156+
Serial.printf("%s", pProp->name());
157+
flxSerial.textToNormal();
158+
Serial.printf(" - data type <%s>\n\r\n\r", flxGetTypeName(pProp->type()));
154159

155160
Serial.printf("\tWhen complete, press <Return> to accept, <ESC> to discard\n\r\n\r");
156161

src/Flux/flxSettingsSerial.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,17 @@ class flxSettingsSerial : public flxActionType<flxSettingsSerial>
302302
drawPageHeader(pCurrent, pEntity->name());
303303

304304
if (showValue)
305-
Serial.printf("Current Value of `%s` = %s\n\r\n\r", pEntity->name(), pEntity->to_string().c_str());
305+
{
306+
// Serial.printf("Current Value of `%s` = %s\n\r\n\r", pEntity->name(), pEntity->to_string().c_str());
307+
Serial.printf("Current Value of ");
308+
flxSerial.textToYellow();
309+
Serial.printf("%s", pEntity->name());
310+
flxSerial.textToNormal();
311+
Serial.printf(" = ");
312+
flxSerial.textToWhite();
313+
Serial.printf("%s\n\r\n\r", pEntity->to_string().c_str());
314+
flxSerial.textToNormal();
315+
}
306316
Serial.printf("Select from the following values:\n\r\n\r");
307317

308318
nMenuItems = 0;
@@ -311,7 +321,7 @@ class flxSettingsSerial : public flxActionType<flxSettingsSerial>
311321
{
312322
nMenuItems++;
313323
if (item.name.length() > 0)
314-
drawMenuEntry(nMenuItems, (item.name + " = " + item.data.to_string()).c_str());
324+
drawMenuEntry(nMenuItems, (item.name + " (" + item.data.to_string() + ")").c_str());
315325
else
316326
drawMenuEntry(nMenuItems, item.data.to_string().c_str());
317327
}

0 commit comments

Comments
 (0)