Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Untold change in IDE 207
2015 年 02 月 18 日
19:51:28
zerozaber
Moderator
Forum Posts: 52
Member Since:
2015 年 02 月 11 日
Offline

I found out that in 207, Serial.parseInt() that should be terminated at first non digit is not need non digit anymore.
This is my code

void setup(){
Serial.begin(115200);
}
void loop(){
if(Serial.available()){
int temp = Serial.parseInt();
Serial.println(temp);
}
}

Trying this code in IDE 106, when I entered "1000", nothing happen. I need to enter non-digit and 86duino will return 1000.
In IDE 207, I do not need to enter non digit anymore. (I think the function is terminated by serial timed out, but not sure yet)

This makes the function differ from Arduino IDE and will cause many bugs.

2015 年 02 月 25 日
15:45:00
Android_Lin
Moderator
Forum Posts: 211
Member Since:
2014 年 04 月 01 日
Offline

Hello, zerozaber:
The 86Duino Coding 207 based on Arduino IDE 1.5.8, we fixed a USB device(Serial) bug on Coding 106 to be compatible with Arduino. So the behavior of parseInt() now is same with Arduino, the parseInt() will be terminated at first non digit or timeout.

Android_Lin

Forum Timezone: Asia/Taipei

Most Users Ever Online: 66

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Dinosaur: 27

leutenecker: 13

mrZagg: 10

lukeross: 8

tomka: 8

smeezekitty: 8

hippy: 8

Ekkehard: 8

UIdahoCIT: 8

blaxxun: 7

Member Stats:

Guest Posters: 0

Members: 1535

Moderators: 14

Admins: 5

Forum Stats:

Groups: 2

Forums: 10

Topics: 239

Posts: 1082

Newest Members: Woodrowcercraby, Robertnalty, Homerwoppy, RonaldLew, JesusMycle, Georgerek, wholesalewholes, involy, Anthonyprity, BruceTum

Moderators: Glaux: 70, uaa: 11, guigra: 17, asian55: 22, Android_Lin: 211, bcarroll: 12, cucubutter: 84, recycled-air: 12, stevemork: 16, zerozaber: 52, pongraczi: 20, George Andrews III: 56, poto: 11, garpastym: 20

Administrators: eveshih: 1, anthony: 31, viky6: 0, roboard: 135, hcl: 0