Skip to content

Commit bf5a3d2

Browse files
Fix cooling in C4
This camera, at least mine, does not cool down when setting temperature to 100C. Instead it starts cooling at 100%. I guess, this is caused by a integer overflow (making 100C a large negative value). Setting the temperature to 50C is accepted by the camera and works as intended.
1 parent e333c40 commit bf5a3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: indi-mi/mi_ccd.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <utility>
3232

3333
#define TEMP_THRESHOLD 0.2 /* Differential temperature threshold (°C) */
34-
#define TEMP_COOLER_OFF 100 /* High enough temperature for the camera cooler to turn off (°C) */
34+
#define TEMP_COOLER_OFF 50 /* High enough temperature for the camera cooler to turn off (°C) */
3535
#define MAX_DEVICES 4 /* Max device cameraCount */
3636
#define MAX_ERROR_LEN 64 /* Max length of error buffer */
3737

0 commit comments

Comments
 (0)