NI-code: Rename hardware defined macros for coolstream stb

Origin commit data
------------------
Commit: f02c3dc1db
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-02-12 (Sun, 12 Feb 2017)

Origin message was:
------------------
- NI-code: Rename hardware defined macros for coolstream stb
This commit is contained in:
vanhofen
2017-02-12 21:57:06 +01:00
parent 5df8b0409e
commit e97d93f824
8 changed files with 13 additions and 13 deletions

View File

@@ -139,7 +139,7 @@ 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_APOLLO
#ifdef BOXMODEL_CS_HD2
url += "&chip_type=" + to_string(cs_get_chip_type());
#endif
url += "&image_type=" + (std::string)type;
@@ -447,7 +447,7 @@ printf("[update] mode is %d\n", softupdate_mode);
//NI
if (allow_flash) {
UpdatesFilter.addFilter(FILEBROWSER_UPDATE_FILTER);
#ifdef BOXMODEL_APOLLO
#ifdef BOXMODEL_CS_HD2
if (CMTDInfo::getInstance()->getMTDEraseSize(sysfs) == 0x40000 /* Tank */)
UpdatesFilter.addFilter("256k");
#endif