Subversion Repositories DashDisplay

Rev

Rev 78 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 78 Rev 79
Line 587... Line 587...
587
    }
587
    }
588
 
588
 
589
    // handle switch rotation
589
    // handle switch rotation
590
    for (int i = 0; i < MAX_DIALS; ++i)
590
    for (int i = 0; i < MAX_DIALS; ++i)
591
    {
591
    {
592
      int delta = get_dial_diff(i);
-
 
593
      int pos = contexts[i].knobPos;
592
      int pos = contexts[i].knobPos;
594
      if (pos < 0)
593
      if (pos < 0)
595
        break; // dont process until we have read NVRAM for the first time .
594
        break; // dont process until we have read NVRAM for the first time .
596
      int start = pos;
595
      int start = pos;
-
 
596
      int delta = get_dial_diff(i);
597
      // move in positive direction
597
      // move in positive direction
598
      while (delta > 0)
598
      while (delta > 0)
599
      {
599
      {
600
        // skip invalid items, dont count
600
        // skip invalid items, dont count
601
        if (pos < INFO_SIZE - 1)
601
        if (pos < INFO_SIZE - 1)