Nofew icon

Untitled

Nofew | PRO | 06/18/12 12:15:11 AM UTC | 0 ⭐ | 401 šŸ‘ļø | Never ā° | []
text |

1.12 KB

|

None

|

0 šŸ‘

/

0 šŸ‘Ž

[20:04] <Keshl> ...I feel so smart.
[20:05] <Keshl> Not sure if this was a concidence or not.
[20:05] <Keshl> I'm in #arduino. The microcontroller uses C, and I only know C. Hate C++, mot people there prefer C++ or Python, I think.
[20:05] <Keshl> Guy comes in asking for help cuz the String library Arduino uses has a weird bug, and the only way to avoid it is to use character arrays.
[20:06] <Keshl> Nobody, there, knew how to do it.
[20:06] <Keshl> So, I post this: http://pastebin.com/xZYQB9EM
[20:06] <luxbot> Title: [C] char typedstuff[65]; short int i = 0; while(Serial.available() == 1) { typed - Pastebin.com (at pastebin.com)
[20:07] <Keshl> I think the fact that I typed "short int", and then later said "change line 4 to "typedstuff[i++] = Serial.read();"", confued the crap out of them.
[20:08] <Keshl> (Before it comes up -- Yes, I know, the array can overflow. Did that intentionally cuz the guy said he needed it for school. Didn't wanna do /all/ his homework <.<)
[20:08] <-- A-man has left this server (Ping timeout: 245 seconds).
[20:09] <Keshl> Is this how it feels when you guys talk to me about math and light? o_o

Comments