File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,15 @@ setClockFreq (div){
7171var freq = Math . round ( 19200000 / div ) ;
7272Freq = freq / 1000 ;
7373
74- if ( pwmObject === 1 ) {
75- setImmediate ( function ( ) {
76- console . log ( 'Frequency calculation (div ' + div + '): ' + Freq + ' KHz' ) ;
77- } ) ;
78- }
79- exports . Freq = Freq ;
74+ if ( pwmObject === 1 ) {
75+ setImmediate ( function ( ) {
76+ console . log ( 'Frequency calculation (div ' + div + '): ' + Freq + ' KHz' ) ;
77+ } ) ;
78+ }
79+ exports . Freq = Freq ;
8080 }
8181 else {
82- throw new Error ( 'setClock() error: invalid div value' ) ;
82+ throw new Error ( 'setClock() error: invalid div value' ) ;
8383 }
8484}
8585
@@ -118,7 +118,7 @@ setData (data){
118118
119119start ( ) {
120120 if ( this . _pw === 1 ) {
121- this . _pw = this . _T ;
121+ this . _pw = this . _T ;
122122 }
123123 rpi . pwmSetData ( this . _pin , this . _pw ) ;
124124}
You can’t perform that action at this time.
0 commit comments