|
@@ -49,6 +49,8 @@ static const char *bm1382_chips[] = {
|
|
|
|
|
|
|
|
static bool antminer_chip_has_bm1382_freq_register(const char * const prodstr)
|
|
static bool antminer_chip_has_bm1382_freq_register(const char * const prodstr)
|
|
|
{
|
|
{
|
|
|
|
|
+ if (!prodstr)
|
|
|
|
|
+ return false;
|
|
|
for (const char **chipname = bm1382_chips; *chipname; ++chipname) {
|
|
for (const char **chipname = bm1382_chips; *chipname; ++chipname) {
|
|
|
if (strstr(prodstr, *chipname)) {
|
|
if (strstr(prodstr, *chipname)) {
|
|
|
return true;
|
|
return true;
|