Increase animation resolution

master
Kenny Levinsen 2020-09-20 03:49:42 +02:00
parent c7e004c65b
commit 71f0f904e2
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -286,7 +286,7 @@ static void update_temperature(struct context *ctx) {
} }
static int increments(struct context *ctx, int to) { static int increments(struct context *ctx, int to) {
int diff = abs(ctx->cur_temp - to) / 50; int diff = abs(ctx->cur_temp - to) / 25;
int time = (ctx->duration * 1000) / diff; int time = (ctx->duration * 1000) / diff;
return time > 600000 ? 600000 : time; return time > 600000 ? 600000 : time;
} }