Go Down

Topic: String Overflow (Read 1 time) previous topic - next topic

Jassper

More info,

Example of incoming string, (random numbers)

100,34.2,50,65.0,600,0.0,0,40.0,200,34.0,24,50.0,100,35.0,20,40.0,0,0,0,0,25,95;

If I un-comment the print statement to see what Temp$ is I get

10034250650600000400200340245001003502040000002595

on the very first loop and each loop after

Furthermore the information stored in iData[] is correct
iData[0] = 100
iData[1] = 342
iData[2] = 50
iData[3] = 650
etc...

It's working now using the while loop but I am just trying to understand why it isn't working in the do-until loop.
:smiley-eek:



Nick Gammon


Sorry, should have mentioned that this is Crestron Simpl+ programing


Yes you should definitely have mentioned that. There probably aren't that many Crestron Simpl+ experts on an Arduino/C++ forum.

Isn't there a Crestron Simpl+ forum? This seems totally out of place to me.

Next you'll want help fixing your car.

Jassper

Quote from: Nick Gammon


Next you'll want help fixing
your car.


Yes and no. They think their product is gold so you don't get a straight answers or they expect to get
paid for every bit of info.

Like I said, there are a lot of
good programmers here.
But i see there a few dick's   as well.

Coding Badly

Like I said, there are a lot of good programmers here.  But i see there a few dick's as well.


From one sarcastic remark you conclude that Nick is a bad programmer and a "few dick's"?

I can't tell if that is or is not an insult.  It could be.  But you incorrectly tried to make "dick" plural when referring to a single person.  As written it is statement of what is before your eyes rather than an insult.  From his published work, Nick is clearly a decent programmer which directly contradicts your implied mutual exclusion.  Your statement makes no sense.  You should rewrite it.

Maybe your post was meant to be sarcastic.  Is that the case?  Was your post an attempt at sarcasm?

Jassper


Like I said, there are a lot of good programmers here.  But i see there a few dick's as well.


From one sarcastic remark you conclude that Nick is a bad programmer and a "few dick's"?


I didn't say he was a bad programmer ;)

If you have nothing to offer to the problem, then just don't replay. He didn't need to belittle, and your post is no better by trying to show your superiority by correcting my grammar and insinuations. Nicks reply was uncalled for just as mine was unfounded. Nick concluded from one post that I'm an Idiot so yes, I concluded from one sarcastic remark that Nick is a dick - seems fair.

The programing is C++ based, the basics are the same. My hope was that someone would have a "possible" reason. I wasn't asking someone to re-write the code in proper syntax - obviously that's not going to happen. PeterH and PaulS at least both offered something constructive and I think PeterH has come close. It at least confirmed that I was on the write track.

That's why I come here, because I get helpful information - regardless.

Now, I have this funny noise in my car....



Go Up