File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ exports = {
68
68
// PI Model type
69
69
PI_MODEL_A : 0 ,
70
70
PI_MODEL_B : 1 ,
71
+ PI_MODEL_CM : 2 ,
71
72
72
73
// PI Model names
73
74
PI_MODEL_NAMES : [
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " wiring-pi" ,
3
- "version" : " 1.1.0 " ,
3
+ "version" : " 1.1.1 " ,
4
4
"description" : " Bindings to wiringPi" ,
5
5
"main" : " lib/exports.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ IMPLEMENT(pinMode) {
314
314
mode = args[1 ]->NumberValue ();
315
315
316
316
// CHECK: Allowed values
317
- if (mode != INPUT && mode != OUTPUT && mode != PWM_OUTPUT && mode != GPIO_CLOCK) {
317
+ if (mode != INPUT && mode != OUTPUT && mode != PWM_OUTPUT && mode != GPIO_CLOCK && mode != SOFT_PWM_OUTPUT && mode != SOFT_TONE_OUTPUT ) {
318
318
ThrowException (Exception::TypeError (
319
319
String::New (" Incorrect mode value. INPUT, OUTPUT, PWM_OUTPUT or GPIO_CLOCK expected." )));
320
320
return scope.Close (Undefined ());
@@ -2243,10 +2243,7 @@ IMPLEMENT(serialPuts) {
2243
2243
// Func : void serialPrintf(const int fd, const char* message, ...)
2244
2244
2245
2245
IMPLEMENT (serialPrintf) {
2246
- HandleScope scope;
2247
- ThrowException (Exception::TypeError (
2248
- String::New (" Not implemented" )));
2249
- return scope.Close (Undefined ());
2246
+ return serialPuts (args);
2250
2247
}
2251
2248
2252
2249
// Func : int serialDataAvail(const int fd)
You can’t perform that action at this time.
0 commit comments