Fixed error code comparison for determining timeout in generic_send
Created by: zlamalp
- There was a typo in comparison command. Sending data worked, but it printed warning. Now we compare error code correctly so the state is reported back also correctly.