[tuxdroid-svn] r658 - daemon/trunk/libs
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-11-06 13:59:51
|
Author: jaguarondi Date: 2007-11-06 14:59:47 +0100 (Tue, 06 Nov 2007) New Revision: 658 Modified: daemon/trunk/libs/USBDaemon_status_table.c Log: * Fixed a bug in the version number parsing. * Added some debug logs for information status (version, revision, author, sounds in flash). Modified: daemon/trunk/libs/USBDaemon_status_table.c =================================================================== --- daemon/trunk/libs/USBDaemon_status_table.c 2007-11-06 10:26:43 UTC (rev 657) +++ daemon/trunk/libs/USBDaemon_status_table.c 2007-11-06 13:59:47 UTC (rev 658) @@ -63,8 +63,11 @@ tmp = (new_status[3] << 24) + (new_status[2] << 16) + (new_status[1] << 8) + (new_status[0]); hw_ver = (version_t *)&tmp; - last_cpu_ver = CPU_VER_MAJ(hw_ver->cpu_ver_maj); + last_cpu_ver = CPU_VER_CPU(hw_ver->cpu_ver_maj); hw_version[last_cpu_ver] = *hw_ver; + log_debug("version of %i: %i.%i.%i", CPU_VER_CPU(hw_ver->cpu_ver_maj), + CPU_VER_MAJ(hw_ver->cpu_ver_maj), hw_ver->ver_minor, + hw_ver->ver_update); } static void update_revision_table(const unsigned char *new_status) @@ -76,6 +79,7 @@ + (new_status[0]); hw_rev = (revision_t *)&tmp; hw_revision[last_cpu_ver] = *hw_rev; + log_debug("revision of %i: %i", last_cpu_ver, hw_rev->revision); } static void update_author_table(const unsigned char *new_status) @@ -87,11 +91,13 @@ + (new_status[0]); hw_aut = (author_t *)&tmp; hw_author[last_cpu_ver] = *hw_aut; + log_debug("author of %i: %i", last_cpu_ver, hw_aut->author_id); } static void update_sound_flash_count(const unsigned char *new_status) { sound_flash_count = new_status[1]; + log_debug("%i sounds in flash", sound_flash_count); } static void update_ir(const unsigned char *new_status) |