Add sanity check for silly overflows in hfa die temperature readings.
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 3eb69c6..11c4a17 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -677,6 +677,9 @@ static void hfa_update_die_status(struct cgpu_info *hashfast, struct hashfast_in
int die = h->chip_address + i;
die_temperature = GN_DIE_TEMPERATURE(d->die.die_temperature);
+ /* Sanity checking */
+ if (unlikely(die_temperature > 255))
+ die_temperature = info->die_data[die].temp;
info->die_data[die].temp = die_temperature;
if (die_temperature > info->max_temp)
info->max_temp = die_temperature;