Digistump Forums
Back to Digistump.com
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Digistump Forums
»
The Digispark
»
Digispark Pro Support
»
SerialUSB problems > 7 bytes
« previous
next »
Print
Pages: [
1
]
Author
Topic: SerialUSB problems > 7 bytes (Read 3006 times)
nic.ashby
Newbie
Posts: 17
SerialUSB problems > 7 bytes
«
on:
July 26, 2015, 11:02:05 am »
long serialInt = SerialUSB.parseInt();
Sending ints less than 8 digits works as expected.
Any number with 8 or more digits causes the digistump to become unresponsive until power cycling.
Please help.
«
Last Edit: July 28, 2015, 12:56:08 pm by nic.ashby
»
Logged
digistump
Administrator
Hero Member
Posts: 1465
Re: SerialUSB problems > 7 bytes
«
Reply #1 on:
August 04, 2015, 12:21:59 pm »
I can't duplicate, but this is a timing issue and the best thing to try would be uping the delay found at line 56 in the DigiCDC.c library file. (
https://github.com/digistump/DigistumpArduino/blob/master/digistump-avr/libraries/DigisparkCDC/DigiCDC.cpp
)
We went with aggressive delays for speed, but some hubs/OSes might prefer a bit longer to receive the character.
Logged
Print
Pages: [
1
]
« previous
next »
Digistump Forums
»
The Digispark
»
Digispark Pro Support
»
SerialUSB problems > 7 bytes