software/videomixer: better pot calibration

This commit is contained in:
Sebastien Bourdeauducq 2013-05-16 17:43:56 +02:00
parent 71cc2db867
commit ac64701e19

View file

@ -13,8 +13,8 @@
static int scale_pot(int raw, int range) static int scale_pot(int raw, int range)
{ {
int pot_min = 54000; int pot_min = 64000;
int pot_max = 105400; int pot_max = 103000;
int scaled; int scaled;
scaled = range*(raw - pot_min)/(pot_max - pot_min); scaled = range*(raw - pot_min)/(pot_max - pot_min);