Author Topic: SerialUSB problems > 7 bytes  (Read 3009 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 »

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.