Ignore:
Timestamp:
Nov 4, 2009, 4:21:24 PM (16 years ago)
Author:
pasha
Message:

Rebuild buffers supply, fix DDCMD_WRITE with len=0 in WAVE chain, remove/add debug output, change DebugInt3 for debug/nondebug version, move unused code to unused directore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OCO/trunk/drv16/timer.cpp

    r418 r468  
    159159   static ULONG hookHandle;
    160160
     161//_asm int 3;
     162   dprintf(("TIMER::TIMER Ms:%d IRQ%d", uTargetMSec,pIRQ->GetIRQLevel()));
    161163   // Set initial state - "not functional".
    162164   _eState = TIMER_Disabled;
     
    394396      uMSec = _uInterval_mSec;
    395397      _uCumulativeError += _uIntervalErr_uSec;
    396       if (_uCumulativeError >= 1000) {
    397          ++uMSec;
    398          _uCumulativeError -= 1000;
     398      if (_uCumulativeError >= 1000)
     399      {
     400//PS++ begin
     401         while ( _uCumulativeError >= 1000 )
     402         {
     403               ++uMSec;
     404               _uCumulativeError -= 1000;
     405         }
     406//PS End
    399407      }
    400408      _ulTime += uMSec;
Note: See TracChangeset for help on using the changeset viewer.