[an error occurred while processing this directive]
|
Было
DS_WriteByte(0xcc);
DS_WriteByte(0x44);
for (;;)
{
int res = DS_Read(32);
if (res == 0xff)
break;
}
DS_WriteByte(0xcc);
DS_WriteByte(0xbe);
printf ("%d\n", DS_Read(32));
printf ("%d\n", DS_Read(32));
Надо
DS_WriteByte(0xcc);
DS_WriteByte(0x44);
for (;;)
{
int res = DS_Read(32);
if (res == 0xff)
break;
}
if (!DSReset()) // оказывается тут сброс нада :-(
{printf ("no ask\n");continue;}
DS_WriteByte(0xcc);
DS_WriteByte(0xbe);
printf ("%d\n", DS_Read(32));
printf ("%d\n", DS_Read(32));