Daxbot / node-canopen

CANopen implementation for NodeJS
MIT License
32 stars 11 forks source link

#6 Fix exception if an NMT command is received without a registered device #7

Closed dawn-minion closed 4 years ago

dawn-minion commented 4 years ago

The code here assumed there was a device registered for the given received NMT node ID. If there wasn't one, then a TypeError would be thrown. This commit changes it to check if a device is registered before we try and access it.

Fixes #6

wilkinsw commented 4 years ago

Thanks! I published v1.4.4 with your change

dawn-minion commented 4 years ago

Thanks @wilkinsw!