X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/f1e16f884308e8ef720a4ecbcdcc97af97dce4bd..08749e4051ac14c6e9a2d85a37b3efdcedbb07f6:/avr/env.c diff --git a/avr/env.c b/avr/env.c index 671d1c4..f167859 100644 --- a/avr/env.c +++ b/avr/env.c @@ -63,6 +63,7 @@ char env_get_char(uint_fast16_t index) 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)); @@ -562,7 +563,7 @@ command_ret_t _do_env_set(uint_fast8_t flag UNUSED, int argc, char * const argv[ * @param varvalue Value to set it to * @return 0 if ok, 1 on error */ -static + int setenv(const MEMX char *varname, const char *varvalue) { int rc; @@ -718,7 +719,6 @@ command_ret_t do_env_print(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, while (optind < argc) { int len = env_print(argv[optind], mode); if (len < 0) { - printf_P(PSTR("## Error: \"%s\" not defined\n"), argv[optind]); rc = CMD_RET_FAILURE; } optind++;