slowtec / tokio-modbus

A tokio-based modbus library
Apache License 2.0
405 stars 120 forks source link

Fix panic on disconnect() #261

Closed uklotzde closed 3 months ago

uklotzde commented 3 months ago

Fixes #260.

uklotzde commented 3 months ago

Ideally, function_code() should not panic. This should have been caught when introducing FunctionCode. No one noticed :shrug:

uklotzde commented 3 months ago

TODO:

The breaking change by extending FunctionCode then belongs to v0.13.