/* Reads a single byte at the supplied EEPROM address  */
void cmd_eeprom_read(uint8_t argc, char **argv)
/* Reads a single byte at the supplied EEPROM address  */
void cmd_eeprom_read(uint8_t argc, char **argv)
{
  int32_t addr32;
  getNumber (argv[0], &addr32);
  if (addr32 < 0 || addr32 > CFG_EEPROM_SIZE)
  {
    printf("Address out of range%s", CFG_PRINTF_NEWLINE);
    return;
  }
  uint8_t value[1] = { 0x00 };
  err_t error = readEEPROM((uint8_t*) addr32, value, 1);
  if (!error)
  {
    printf("0x%02X%s", value[0], CFG_PRINTF_NEWLINE);
  }
  else
  {
    printf("Error reading EEPROM: %d%s", error, CFG_PRINTF_NEWLINE);
  }
}