From: bdemsky Date: Sat, 20 Jan 2018 06:12:47 +0000 (-0800) Subject: edits X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=151413d447b9302ee57b5d3276ef73e4b297fdc0;hp=9b3061d1723f6ae447f58e6cc83c9854fdd104be;p=iotcloud.git edits --- diff --git a/version2/src/C/LocalComm.cc b/version2/src/C/LocalComm.cc index 9640277..ac4c343 100644 --- a/version2/src/C/LocalComm.cc +++ b/version2/src/C/LocalComm.cc @@ -1,4 +1,7 @@ #include "LocalComm.h" +#include "Error.h" +#include "Table.h" + Array *LocalComm::sendDataToLocalDevice(int64_t deviceId, Array *data) { printf("Passing Locally\n"); @@ -7,8 +10,8 @@ Array *LocalComm::sendDataToLocalDevice(int64_t deviceId, Array *dat } else if (deviceId == t2->getMachineId()) { // return t2.localCommInput(data); } else { - throw new Error("Cannot send to " + deviceId + " using this local comm"); + throw new Error("Cannot send to deviceId using this local comm"); } - return new char[0]; + return new Array((uint32_t)0); } diff --git a/version2/src/C/LocalComm.h b/version2/src/C/LocalComm.h index 8780dc0..762da17 100644 --- a/version2/src/C/LocalComm.h +++ b/version2/src/C/LocalComm.h @@ -13,6 +13,6 @@ public: t2(_t2) { } - public Array *sendDataToLocalDevice(int64_t deviceId, Array *data); + Array *sendDataToLocalDevice(int64_t deviceId, Array *data); }; #endif