switch (env_valid) {
case 2:
off += CONFIG_ENV_SIZE;
+ /* FALL TROUGH */
case 1:
ret = (char) eeprom_read_byte((const uint8_t *)off + index +
offsetof(env_t, data));
/* print selected env vars */
while (optind < argc) {
- int rc = env_print(argv[optind], mode);
- if (rc < 0) {
+ int len = env_print(argv[optind], mode);
+ if (len < 0) {
printf_P(PSTR("## Error: \"%s\" not defined\n"), argv[optind]);
rc = CMD_RET_FAILURE;
}