- Notifications
You must be signed in to change notification settings - Fork 665
Closed
Description
I was looking through the SocketCAN constants defined in can/interfaces/socketcan/constants.py, and noticed these constants:
REMOTE_FRAME=TrueDATA_FRAME=FalseWAKEUP_MSG=TrueERROR_FRAME=TrueDRIVER_MODE_SILENT=FalseDRIVER_MODE_NORMAL= (notDRIVER_MODE_SILENT)What is the purpose of these? Are these just to be backwards compatible so we aren't breaking some old API? I didn't seem to find any documentation about these or a deprecation warning anywhere..
Otherwise, I didn't see any references in the code where they are used, so can they safely be removed? In my local testing it doesn't seem like removing these breaks anything.
I have prepared a patch to remove these, but I thought I'd check first before jumping the gun 😂