Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fpgpio.pas
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ class procedure TGpioLinuxPin.WriteToFile(const aFileName: String;
begin
fd := fpOpen(aFileName, O_WRONLY);
if fd = -1 then
EFOpenError.CreateFmt(SFOpenError, [aFileName]);
raise EFOpenError.CreateFmt(SFOpenError, [aFileName]);
FpWrite(fd, aBuffer, aCount);
FpClose(fd);
end;
Expand Down
2 changes: 1 addition & 1 deletion src/mcp23017.pas
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function TMCP23S17Controller.GetRegisterValue(aRegister: Byte): Byte;
begin
if HAEN then
begin
b[0] := Address;
b[0] := Address or 1;
b[1] := aRegister;
fSPIDevice.ReadAndWrite(b[0], 2, rb[0], 3);
end
Expand Down