Skip to content

Commit 8b42079

Browse files
committed
Fixed doc
1 parent 2dbf338 commit 8b42079

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/source/udsoncan/client.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ The client configuration must be a dictionary with the following keys defined:
186186
.. _config_request_timeout:
187187

188188
.. attribute:: request_timeout
189-
:annotation: (int)
189+
:annotation: (float)
190190

191191
Maximum amount of time in seconds to wait for a response (positive or negative except NRC 0x78) after sending a request.
192192
After this time is elapsed, a TimeoutException will be raised regardless of other timeouts value or previous client response.
@@ -196,7 +196,7 @@ The client configuration must be a dictionary with the following keys defined:
196196
.. _config_p2_timeout:
197197

198198
.. attribute:: p2_timeout
199-
:annotation: (int)
199+
:annotation: (float)
200200

201201
Maximum amount of time in seconds to wait for a first response (positive, negative, or NRC 0x78). After this time is elapsed, a TimeoutException will be raised if no response has been received.
202202
See ISO 14229-2:2013 (UDS Session Layer Services) for more details.
@@ -205,7 +205,7 @@ The client configuration must be a dictionary with the following keys defined:
205205
.. _config_p2_star_timeout:
206206

207207
.. attribute:: p2_star_timeout
208-
:annotation: (int)
208+
:annotation: (float)
209209

210210
Maximum amount of time in seconds to wait for a response (positive, negative, or NRC0x78) after the reception of a negative response with code 0x78
211211
(requestCorrectlyReceived-ResponsePending). After this time is elapsed, a TimeoutException will be raised if no response has been received.

udsoncan/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def set_config(self, key, value):
7575
self.refresh_config()
7676

7777
def set_configs(self, dic):
78-
for k in dic:
79-
self.set_config(k, dic[k])
78+
self.config.update(dic)
79+
self.refresh_config()
8080

8181
def refresh_config(self):
8282
self.configure_logger()

0 commit comments

Comments
 (0)