Skip to content
Snippets Groups Projects
Unverified Commit 37c5e144 authored by Jake Drahos's avatar Jake Drahos
Browse files

There WERE copy-paste bugs

parent ad27a49f
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,6 @@
enum GetcontrolData {
CTRL_ID,
CTRLVAL_ID,
VAL_1,
VAL_2,
VAL_3,
VAL_4,
GC_DATA_SIZE
};
......@@ -32,10 +28,6 @@ ssize_t EncodeGetcontrol(
data[CTRL_ID] = cm->id;
data[CTRLVAL_ID] = cm->value_id;
data[VAL_1] = FloatByte1(cm->value);
data[VAL_2] = FloatByte2(cm->value);
data[VAL_3] = FloatByte3(cm->value);
data[VAL_4] = FloatByte4(cm->value);
return GC_DATA_SIZE;
}
......@@ -58,8 +50,6 @@ int DecodeGetcontrol(
cm->id = data[CTRL_ID];
cm->value_id = data[CTRLVAL_ID];
cm->value = BytesToFloat(data[VAL_1], data[VAL_2],
data[VAL_3], data[VAL_4]);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment