Display 6 digits hex for RFCode #6846

This commit is contained in:
Stephan Hadinger 2019-11-06 20:48:26 +01:00
parent d42e81402a
commit aceef4d469
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ void CmndRfBridge(void) // RfSync, RfLow, RfHigh, RfHost and RfCode
if (10 == radix) { if (10 == radix) {
snprintf_P(stemp, sizeof(stemp), PSTR("%d"), code); snprintf_P(stemp, sizeof(stemp), PSTR("%d"), code);
} else { } else {
snprintf_P(stemp, sizeof(stemp), PSTR("\"#%X\""), code); snprintf_P(stemp, sizeof(stemp), PSTR("\"#%06X\""), code);
} }
Response_P(S_JSON_COMMAND_XVALUE, XdrvMailbox.command, stemp); Response_P(S_JSON_COMMAND_XVALUE, XdrvMailbox.command, stemp);
} }