[FIX] Fix transfer counter for segmented SDO transfer

The count of bytes transferred during a segmented transfer is
incorrect. The last frame is not counted.

Bugfix provided for 1.8.4 by Romain Naour <romain.naour@openwide.fr>

Change-Id: If02e7c5e76db45feba93dcd8b317a0902524efae
Reviewed-on: http://brateggevoat1/gerrit/2095
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>
[FIX] Fix NoAck during segmented transfer

When the SdoState is in "WaitAck" state during an segmented transfer
and an "Error Ack" frame is receved, the SdoState isn't reset to
"Connected". The CN may be busy for a short time, wait for it in
WaitAck" state.

Bugfix provided for 1.8.4 by Romain Naour <romain.naour@openwide.fr>

Change-Id: I09b93d1197d3c91460e9e3d92a496a393bf4d7d5
Reviewed-on: http://brateggevoat1/gerrit/2096
Tested-by: Jenkins <jenkins@brateggevoat1.br-automation.co.at>
Reviewed-by: Wolfgang Seiss <wolfgang.seiss@br-automation.com>
Reviewed-by: Josef Baumgartner <josef.baumgartner@br-automation.com>