diff --git a/cube/User/Src/configCmds.c b/cube/User/Src/configCmds.c index e122556..306c5ba 100644 --- a/cube/User/Src/configCmds.c +++ b/cube/User/Src/configCmds.c @@ -237,7 +237,7 @@ static bool changeDeviceCmd(uint8_t argc, char **args) { bool retCode = makeDevice(argc, args, &deviceBlock, &index); if (retCode) { 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", deviceBlock.deviceName, deviceBlock.address, deviceBlock.period); for (uint8_t i = 0; i < MBUSDEVICE_NUM_OF_CONSIDEREDFIELDS; i++) {