Skip to content

Commit ec666bb

Browse files
committed
Merge pull request #7 from nekuz0r/incoming
v1.1.1
2 parents 6a156eb + d831507 commit ec666bb

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

lib/exports.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ exports = {
6868
// PI Model type
6969
PI_MODEL_A: 0,
7070
PI_MODEL_B: 1,
71+
PI_MODEL_CM: 2,
7172

7273
// PI Model names
7374
PI_MODEL_NAMES: [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wiring-pi",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Bindings to wiringPi",
55
"main": "lib/exports.js",
66
"scripts": {

src/bindings.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ IMPLEMENT(pinMode) {
314314
mode = args[1]->NumberValue();
315315

316316
// 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) {
318318
ThrowException(Exception::TypeError(
319319
String::New("Incorrect mode value. INPUT, OUTPUT, PWM_OUTPUT or GPIO_CLOCK expected.")));
320320
return scope.Close(Undefined());
@@ -2243,10 +2243,7 @@ IMPLEMENT(serialPuts) {
22432243
// Func : void serialPrintf(const int fd, const char* message, ...)
22442244

22452245
IMPLEMENT(serialPrintf) {
2246-
HandleScope scope;
2247-
ThrowException(Exception::TypeError(
2248-
String::New("Not implemented")));
2249-
return scope.Close(Undefined());
2246+
return serialPuts(args);
22502247
}
22512248

22522249
// Func : int serialDataAvail(const int fd)

0 commit comments

Comments
 (0)