Stop receiving when you get <LF>

Its still not working. It looks like the controller is not interpreting
my messages correctly.

Connected to 129.13.240.249 Port: 1234
Receiving packet size 12
total bytes: 0
m[0] 0x73
m[1] 0x6d
m[2] 0x63
m[3] 0x20
m[4] 0x31
m[5] 0x2e
m[6] 0x32
m[7] 0x2e
m[8] 0x31
m[9] 0x37
m[10] 0xd
m[11] 0xa
Found 0x0a on the string. Aborting!
string received: smc 1.2.17

Sending packet size 20
?:cmdlist
Receiving packet size 100
total bytes: 0