Support for DDR Supernova & Supernova2

Added baud rate used by DDR Supernova & Supernova2
main
Nadeflore 2013-11-19 22:28:07 +01:00
parent aa2871dc98
commit cdbbada3f8
2 changed files with 8 additions and 6 deletions

View File

@ -7,11 +7,11 @@ Its uses rs232 and allows several "nodes" to be connected a single serial port.
Games support Games support
------------- -------------
Currently this project supports the following games : (nodes description) Currently this project supports the following games :
pop'n music 15-18 (one old slotted reader) pop'n music 15-18 (one old slotted reader)
pop'n music 19-21 (one new wavepass reader with encrypted communication (only game I know which use this encryption) + optional card dispenser) pop'n music 19-21 (one new wavepass reader with encrypted communication (only game I know which uses this encryption) + optional card dispenser)
iidx 13-18 (2 old slotted readers) iidx 13-18 (2 old slotted readers)
@ -21,7 +21,9 @@ jubeat 1 - knit (one old slotted reader (no keypad) + one led board (game won't
jubeat copious - saucer (one new reader (no keypad) + one led board (game won't boot if the led board is not present) jubeat copious - saucer (one new reader (no keypad) + one led board (game won't boot if the led board is not present)
DDR (2 old readers in sd, 2 new readers in HD) DDR SN-SN2 (2 old slotted readers)
DDR X-X3 (2 readers (old or new) in sd, 2 readers (old or new) + led board ? in HD)
drum mania (1 old reader) drum mania (1 old reader)

View File

@ -423,14 +423,14 @@ void sendAnswer(byte* answer)
// //
long detRate() long detRate()
{ {
long baudrates[] = {38400, 57600};//baudrates to try long baudrates[] = {57600,38400,19200};//baudrates to try
int i=0; int i=0;
boolean allAA; boolean allAA;
do //for each baud rate do //for each baud rate
{ {
i++; i++;
if(i>1) if(i> (sizeof(baudrates)/sizeof(baudrates[0])) -1 )
i=0; i=0;
//flush in and out buffer //flush in and out buffer
while(Serial.available()) while(Serial.available())