File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change
1
+ trio-gpio (0.2.3-2) unstable; urgency=medium
2
+
3
+ * TL;DR: didn't RTFM
4
+
5
+ -- Matthias Urlichs <
[email protected] > Mon, 11 Jun 2018 09:08:30 +0200
6
+
1
7
trio-gpio (0.2.2-1) unstable; urgency=medium
2
8
3
9
* Access errno
Original file line number Diff line number Diff line change @@ -135,12 +135,10 @@ def _enter_io(self):
135
135
)
136
136
else :
137
137
self .__exit__ ()
138
- raise RuntimeError ("Unknown direction" , r )
138
+ raise RuntimeError ("Unknown direction" )
139
139
if r != 0 :
140
- if r < 0 :
141
- r = gpio .ffi .errno
142
140
self .__exit__ ()
143
- raise OSError ("unable to set direction" , r )
141
+ raise OSError ("unable to set direction" )
144
142
self ._state = _IN_IO
145
143
return self
146
144
@@ -151,7 +149,7 @@ def _enter_ev(self):
151
149
req .flags = self ._flags
152
150
153
151
if gpio .lib .gpiod_line_request (self ._line , req , 0 ) != 0 :
154
- raise OSError ("unable to request event monitoring" , gpio . ffi . errno )
152
+ raise OSError ("unable to request event monitoring" )
155
153
self ._state = _IN_EV
156
154
157
155
def __exit__ (self , * tb ):
@@ -279,9 +277,7 @@ async def __anext__(self):
279
277
self ._is_open ()
280
278
r = gpio .lib .gpiod_line_event_read_fd (fd , ev )
281
279
if r != 0 :
282
- if r < 0 :
283
- r = gpio .ffi .errno
284
- raise OSError ("unable to read update" , r )
280
+ raise OSError ("unable to read update" )
285
281
return Event (ev )
286
282
287
283
async def aclose (self ):
You can’t perform that action at this time.
0 commit comments