Changeset 1976:af345ff4e1d0 in roaraudio for libroarlight


Ignore:
Timestamp:
06/12/09 03:30:42 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

also fill if we habe less than one byte

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarlight/pwm.c

    r1975 r1976  
    9999 
    100100 if ( todo ) { 
     101  if ( state->fill < 8 ) { 
     102   s             = _g_roar_lpwm16[state->value]; 
     103   s           <<= state->fill; 
     104   state->s     |= s; 
     105   state->fill  += 16; 
     106  } 
     107 
    101108  buf[len-1]    = state->s & 0xFF; 
    102109  state->s    >>= 8; 
Note: See TracChangeset for help on using the changeset viewer.