ChangeDevice

This commit is contained in:
Wolfgang Hottgenroth 2020-12-17 09:17:07 +01:00
parent 9f71620697
commit 7b79103ed8
Signed by: wn
GPG Key ID: E49AF3B9EF6DD469

View File

@ -237,7 +237,7 @@ static bool changeDeviceCmd(uint8_t argc, char **args) {
bool retCode = makeDevice(argc, args, &deviceBlock, &index); bool retCode = makeDevice(argc, args, &deviceBlock, &index);
if (retCode) { if (retCode) {
sendString("Changed device would be:\n\r"); sendString("Changed device would be:\n\r");
sendFormatString(" Index: %d\n\r"); sendFormatString(" Index: %d\n\r", index);
sendFormatString(" Name: %s, Address: %d, Period: %d\n\r", sendFormatString(" Name: %s, Address: %d, Period: %d\n\r",
deviceBlock.deviceName, deviceBlock.address, deviceBlock.period); deviceBlock.deviceName, deviceBlock.address, deviceBlock.period);
for (uint8_t i = 0; i < MBUSDEVICE_NUM_OF_CONSIDEREDFIELDS; i++) { for (uint8_t i = 0; i < MBUSDEVICE_NUM_OF_CONSIDEREDFIELDS; i++) {