-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
The PdoBase.save() method would fail with a cryptic TypeError exception when the COB-ID was not previously set (still at None). Instead just skip the corresponding PDO and log an INFO level message about it. Add logging when re-enabling the PDO as well. Also fix some minor issues in surrounding code: * Added a test for PDO saving from EDS without further settings. * Skip the always true condition "self.map is not None". The attribute is initialized as an empty list. * Simplify check for curtis_hack using getattr(). * Remove unnecessary initialization in PdoMap.__getitem__(). * Removed unused variable "data" in PdoVariable.set_data() * Wrong type for empty argument to send_message(). Co-authored-by: Frieder Schüler <[email protected]>
- Loading branch information
1 parent
5367d83
commit fc577d1
Showing
2 changed files
with
49 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters