diff --git a/src/gui/info_menue.cpp b/src/gui/info_menue.cpp index 985e41593..b1354e132 100644 --- a/src/gui/info_menue.cpp +++ b/src/gui/info_menue.cpp @@ -72,7 +72,9 @@ int CInfoMenu::exec(CMenuTarget* parent, const std::string &actionKey) //NI { char str[1024]; sprintf(str, "cs_get_revision(): 0x%02X\n", cs_get_revision()); +#ifdef BOXMODEL_CS_HD2 sprintf(str, "%scs_get_chip_type(): 0x%04X\n", str, cs_get_chip_type()); +#endif ShowMsg(LOCALE_MESSAGEBOX_INFO, str, CMsgBox::mbrBack, CMsgBox::mbBack); return res; } diff --git a/src/gui/update.cpp b/src/gui/update.cpp index 8f01a0375..fa899a272 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -141,7 +141,9 @@ void CFlashUpdate::update_php(std::string &url, const char* type) if (url.find("update.php") != std::string::npos) { url += "?revision=" + to_string(cs_get_revision()); +#ifdef BOXMODEL_CS_HD2 url += "&chip_type=" + to_string(cs_get_chip_type()); +#endif url += "&image_type=" + (std::string)type; printf("[update_php] url %s\n", url.c_str()); }