add hd51; mostly ported from TangoCash's neutrino-mp

Origin commit data
------------------
Commit: 09ae4c3a51
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-10-05 (Thu, 05 Oct 2017)

Origin message was:
------------------
- add hd51; mostly ported from TangoCash's neutrino-mp
This commit is contained in:
vanhofen
2017-10-05 12:52:53 +02:00
parent 384333992b
commit 7fcd8dea4c
27 changed files with 1948 additions and 247 deletions

View File

@@ -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());
#if HAVE_COOL_HARDWARE
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());
}