Skip to content
Snippets Groups Projects
Commit 5e3dc5ef authored by uvos's avatar uvos
Browse files

fix boolean inversion in temperature setting

parent 43171396
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ int coincellhell_set_temperature(struct coincellhell* hell, uint8_t heater, floa
int ret;
while((ret = usbshm_writeControlTransfer(hell->priv, COMMAND_HEATER_SET_TEMPERATURE, NULL, 0, temperature*10.0f, heater)) == USBSHM_ERROR_AGAIN)
usleep(100000);
return ret < 0 ? 0 : -1;
return ret >= 0 ? 0 : -1;
}
int coincellhell_get_temperature_setpoint(struct coincellhell* hell, uint8_t heater, float* temperature)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment