View Single Post
Old 02-19-2009, 02:20 PM   #848 (permalink)
rmccomiskie
EcoModding Lurker
 
Join Date: Aug 2008
Location: Massachusetts USA
Posts: 84

Ziggy - '95 Audi S6 Sedan

Manfred - '97 Audi A6 Quattro Sedan
90 day: 20.61 mpg (US)

Clarabell - '03 Audi A4 Quattro Avant

Sherman - '98 Audi A6 Quattro Avant

Cab - '96 Audi Cabriolet
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by Nevyn View Post
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.
  Reply With Quote