From 31609f904fcb97e3b9286369a0d538b23b07d6db Mon Sep 17 00:00:00 2001 From: Chris Teubert Date: Sun, 26 Apr 2015 14:07:12 -0700 Subject: [PATCH] fixed bug in sendDATATest The wrong array was being set in the test sendDATATest(). We should make the test more complete so this can be caught. --- TestScripts/C Tests/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TestScripts/C Tests/main.c b/TestScripts/C Tests/main.c index 9ecca83..dca0291 100644 --- a/TestScripts/C Tests/main.c +++ b/TestScripts/C Tests/main.c @@ -180,9 +180,9 @@ int sendDATATest() // sendDATA test { "sim/aircraft/parts/acf_gear_deploy" }; - float* data[100]; + float* data[100]; // array for result of getDREFs int sizes[100]; - float DATA[4][9]; + float DATA[4][9]; // Array for sendDATA XPCSocket sock = openUDP("127.0.0.1", 49009, 49066); // Setup @@ -198,9 +198,9 @@ int sendDATATest() // sendDATA test data[i][j] = -998; } } - data[0][0] = 14; // Gear - data[0][1] = 1; - data[0][2] = 0; + DATA[0][0] = 14; // Gear + DATA[0][1] = 1; + DATA[0][2] = 0; // Execution sendDATA(sock, DATA, 1);