Merge pull request #6855 from s-hadinger/fix_rfcode_6846

Display 6 digits hex for RFCode #6846
This commit is contained in:
Theo Arends 2019-11-06 21:11:04 +01:00 committed by GitHub
commit bb8d781290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
} }