Skip to content

Commit

Permalink
Merge pull request #3 from noctarius/patch-1
Browse files Browse the repository at this point in the history
Fixed argument index of consumer name on requestInputMode
  • Loading branch information
sombriks committed Mar 11, 2022
2 parents 079d508 + 0145f10 commit 827fbd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/line.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ NAN_METHOD(Line::setValue) {

NAN_METHOD(Line::requestInputMode) {
Line *obj = Nan::ObjectWrap::Unwrap<Line>(info.This());
Nan::Utf8String consumer(info[1]);
Nan::Utf8String consumer(info[0]);
if (-1 == gpiod_line_request_input(obj->getNativeLine(), *consumer))
Nan::ThrowError("Unable to request input mode for this line");
}
Expand Down

0 comments on commit 827fbd3

Please sign in to comment.