Johnny Bravo
/
dac_controller2
can version
Fork of dac_controller2 by
Diff: DAC/DAC.cpp
- Revision:
- 3:29aa7212dda4
- Parent:
- 1:4bd950ab8756
diff -r c0287d9c2226 -r 29aa7212dda4 DAC/DAC.cpp --- a/DAC/DAC.cpp Fri Apr 11 19:53:01 2014 +0000 +++ b/DAC/DAC.cpp Tue Apr 29 03:13:12 2014 +0000 @@ -34,7 +34,7 @@ if( p_form == FORM_SQUARE ){ if( p_freq == FREQ_10HZ ){ //generate square wave at 10HZ - if( (int)time_us % 1000000 <= 500000){ // T = 100 ms + if( (int)time_us % 100000 <= 50000){ // T = 100 ms Vout = p_range; } else