From 00378c0a7d0ef13ba02391176f9cf5db3a8f4dc3 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Thu, 15 Mar 2012 20:29:09 +0000 Subject: xpp: clean 'Extrainfo' EEPROM field * Extrainfo field contains junk data * Caused by: - The field is initialized to 0xFF values - There was no null termination (and no room to add it) * New code: - Ensure that show_extrainfo() have null termination even if EEPROM field is full. - Replace trailing 0xFF characters with '\0' when reading this field - Since our default burned EEPROM contain Extrainfo field full of 0xFF characters, this would make them look as null filled. Internal Issue-Id: #1341 Signed-off-by: Oron Peled Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10491 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- xpp/mpptalk_defs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xpp/mpptalk_defs.h') diff --git a/xpp/mpptalk_defs.h b/xpp/mpptalk_defs.h index e38f381..bc0b83b 100644 --- a/xpp/mpptalk_defs.h +++ b/xpp/mpptalk_defs.h @@ -108,4 +108,6 @@ enum dev_dest { DEST_EEPROM = 0x02, }; +#define EXTRAINFO_SIZE 24 + #endif /* MPPTALK_DEFS_H */ -- cgit v1.2.3