From 4d836ecff229888faa6cf3551976dc5d204f6852 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Mon, 4 Feb 2013 09:33:07 +0100 Subject: [PATCH] Fixed typo --- examples/Bluetooth/SPPMulti/SPPMulti.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Bluetooth/SPPMulti/SPPMulti.ino b/examples/Bluetooth/SPPMulti/SPPMulti.ino index d0db7299..4cf6f66f 100644 --- a/examples/Bluetooth/SPPMulti/SPPMulti.ino +++ b/examples/Bluetooth/SPPMulti/SPPMulti.ino @@ -57,7 +57,7 @@ void loop() { For instace "0Hello World" would send "Hello World" to connection 0 */ uint8_t id = buffer[0]-'0'; // Convert from ASCII - if(id < length && length > 1) { // And then compare to length and make sure there is any text + if(id < length && i > 1) { // And then compare to length and make sure there is any text if(SerialBT[id]->connected) { // Check if a device is actually connected for(uint8_t i2 = 0; i2 < i-1; i2++) // Don't include the first character buffer[i2] = buffer[i2+1];