Skip to content

Commit

Permalink
Fix cooling in C4
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
peter-englmaier committed Jun 16, 2024
1 parent e333c40 commit bf5a3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indi-mi/mi_ccd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <utility>

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

Expand Down

0 comments on commit bf5a3d2

Please sign in to comment.