diff --git a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde index fb15159..9df3bb3 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde @@ -107,9 +107,10 @@ class Wiz810MjDevice { private: void _init(void); + byte * _packBuffer(byte b0, byte b1, byte b2, byte b3); int _resetPin; - + byte _scratchBuffer[6]; // Can we make this static? }; @@ -158,7 +159,7 @@ void Wiz810MjDevice::_init(void) { sysinit(0x55, 0x55); } -void Wiz810MjDevice::setIp(byte b0, byte b1, byte b2, byte b3) { +byte * Wiz810MjDevice::_packBuffer(byte b0, byte b1, byte b2, byte b3) { /* */ @@ -166,8 +167,15 @@ void Wiz810MjDevice::setIp(byte b0, byte b1, byte b2, byte b3) { _scratchBuffer[1] = b1; _scratchBuffer[2] = b2; _scratchBuffer[3] = b3; + + return _scratchBuffer; +} + +void Wiz810MjDevice::setIp(byte b0, byte b1, byte b2, byte b3) { + /* - setSIPR(_scratchBuffer); + */ + setSIPR(_packBuffer(b0, b1, b2, b3)); } /* ----------------------- */