Fixed network output to include all data [headkaze]

This commit is contained in:
arbee 2016-06-05 14:10:57 -04:00
parent 5d5bf3813d
commit eb2617f7ae

View File

@ -67,7 +67,12 @@ public:
// output_module
virtual void notify(const char *outname, INT32 value) override { m_server->send_to_all((const uint8_t*)outname, strlen(outname)); }
virtual void notify(const char *outname, INT32 value) override
{
static char buf[256];
sprintf(buf, "%s = %d\n", ((outname==nullptr) ? "none" : outname), value);
m_server->send_to_all((const uint8_t*)buf, strlen(buf));
}
// implementation
void process_output()