Subversion Repositories DashDisplay

Rev

Rev 71 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 71 Rev 76
Line 100... Line 100...
100
  // if ((dial_pos[1] != 0) || (cnt1 > dial_count[1]))
100
  // if ((dial_pos[1] != 0) || (cnt1 > dial_count[1]))
101
  dial_pos[1] += cnt1 - dial_count[1];
101
  dial_pos[1] += cnt1 - dial_count[1];
102
  dial_count[1] = cnt1;
102
  dial_count[1] = cnt1;
103
}
103
}
104
 
104
 
105
get_dial_diff(int dial)
105
int get_dial_diff(int dial)
106
{
106
{
107
  if (dial > MAX_DIALS || dial < 0)
107
  if (dial > MAX_DIALS || dial < 0)
108
    return 0;
108
    return 0;
109
  // read value once
109
  // read value once
110
  int pos = dial_pos[dial];
110
  int pos = dial_pos[dial];