Pages: 1 [2]   Go Down
Author Topic: Split string  (Read 1578 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
Faraday Member
**
Karma: 100
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What's with the extra { and } in your code?

Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

As Majenko says, you've got some extra { and } in your code. I suspect that these are places where you intended to put 'if' statements to select which line to display on but for some reason you haven't added them.

You probably want to have something like:

Code:
if(strcmp(dataStr, "E") == 0)
{
    matrix.setCursor(0, 0);
    matrix.print(mostSignificantDigit1);
    matrix.writeScreen();
}

etc
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you! I've deleted the extra { } and added the if function and it looks pretty good smiley-cool
Logged

Pages: 1 [2]   Go Up
Jump to: