Add 1 to max temp scale

This commit is contained in:
iabdalkader 2014-08-25 14:33:44 +02:00
parent 9572faf78f
commit e13e902d80

View File

@ -139,6 +139,8 @@ mp_obj_t mlx90620_read()
} }
} }
max_temp += 1.0f;
for (int i=0; i<64; i++) { for (int i=0; i<64; i++) {
img.pixels[i] = (uint8_t)(((temp[i]-min_temp)/(max_temp-min_temp))*255.0f); img.pixels[i] = (uint8_t)(((temp[i]-min_temp)/(max_temp-min_temp))*255.0f);
} }