CLuaInstMisc::GetRevision: Use hw_caps for hardware name...

...on non coolstream hardware


Origin commit data
------------------
Commit: f0e98af21b
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-14 (Thu, 14 Jan 2016)
This commit is contained in:
Michael Liebmann
2016-01-14 12:56:27 +01:00
parent e946238622
commit 5aaaffad5f

View File

@@ -281,6 +281,10 @@ int CLuaInstMisc::GetRevision(lua_State *L)
std::string hw = ""; std::string hw = "";
#if HAVE_COOL_HARDWARE #if HAVE_COOL_HARDWARE
hw = "Coolstream"; hw = "Coolstream";
#else
hw = g_info.hw_caps->boxvendor;
hw += "_";
hw += g_info.hw_caps->boxname;
#endif #endif
rev = cs_get_revision(); rev = cs_get_revision();
lua_pushinteger(L, rev); lua_pushinteger(L, rev);