Gordons Projects

--> Projects Top-Level GIT

Updated a technicality in softPwm, and added a suggested memset to zero
[wiringPi] / wiringPi / softPwm.c
index 3c79ba7..98b408f 100644 (file)
 
 #define        PULSE_TIME      100
 
-static int marks         [MAX_PINS] ;
-static int range         [MAX_PINS] ;
-static pthread_t threads [MAX_PINS] ;
-
-int newPin = -1 ;
+static volatile int marks         [MAX_PINS] ;
+static volatile int range         [MAX_PINS] ;
+static volatile pthread_t threads [MAX_PINS] ;
+static volatile int newPin = -1 ;
 
 
 /*