pkourany / SparkIntervalTimer

Interval Timer Library using Core hardware timers
Other
49 stars 33 forks source link

Comparison instead of assignment? #2

Closed leighghunt closed 9 years ago

leighghunt commented 9 years ago

I've not got this working yet, but this looked like a typo?

I got this when I tried to include in my code:

SparkIntervalTimer/SparkIntervalTimer.cpp: In member function 'void IntervalTimer::start_SIT(uint16_t, bool)':
SparkIntervalTimer/SparkIntervalTimer.cpp:178:10: warning: statement has no effect [-Wunused-value]
    scale == uSec;    // Default to microseconds
          ^
pkourany commented 9 years ago

Thanks for the catch @leighghunt. The code never gets there since "default" is a catch-all type error trap. I will make sure the fix also gets into the next Photon-compatible version.