Quote:
Originally Posted by Nevyn
I think you have a typo.
Code:
}else{
x -= s; //otherwise subtract settling time from the pulse width
}
Should be
Code:
}else{
x - s; //otherwise subtract settling time from the pulse width
}
|
Actually, no. "x - s;" is syntactically incorrect. The calculation must be assigned to something. "x -= s;" is equivalent to "x = x - s;" which subtracts s from x and puts the result in x. I'm glad someone cares enough to look it over though. Cheers.