# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1360069846 -3600
# Node ID 64cdc3b59d25410ccd59ab16d59334be8507418d
# Parent  97fd83907c7ca814de5060ce7b36ead1ed1ced19
Fixed FoE data opcode, thanks to R. Roesch.

diff -r 97fd83907c7c -r 64cdc3b59d25 master/fsm_foe.c
--- a/master/fsm_foe.c	Tue Feb 05 13:56:29 2013 +0100
+++ b/master/fsm_foe.c	Tue Feb 05 14:10:46 2013 +0100
@@ -257,7 +257,7 @@
         return -1;
     }
 
-    EC_WRITE_U8 (data, EC_FOE_OPCODE_DATA);    // OpCode = DataBlock req.
+    EC_WRITE_U16(data, EC_FOE_OPCODE_DATA);    // OpCode = DataBlock req.
     EC_WRITE_U32(data + 2, fsm->tx_packet_no); // PacketNo, Password
 
     memcpy(data + EC_FOE_HEADER_SIZE,