1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-11-04 23:21:16 -05:00

Align device names

This commit is contained in:
phl0 2017-11-05 20:48:08 +01:00
parent c3657078c4
commit 5419ef64b8
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A

View File

@ -95,7 +95,7 @@ bool CUsb3003DF2ETInterface::ResetDevice(void)
int len, i;
char rxpacket[100];
std::cout << "Trying AMBE3003USB soft reset" << std::endl;
std::cout << "Trying DF2ET-3003 soft reset" << std::endl;
DWORD n, b;
char txpacket[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
@ -135,13 +135,13 @@ bool CUsb3003DF2ETInterface::ResetDevice(void)
ok = ((len == 7) && (rxpacket[4] == PKT_READY));
if ( ok )
{
std::cout << "AMBE3003USB soft reset succeeded" << std::endl;
std::cout << "DF2ET-3003 soft reset succeeded" << std::endl;
}
else
{
std::cout << "AMBE3003USB soft reset failed" << std::endl;
std::cout << "DF2ET-3003 soft reset failed" << std::endl;
std::cout << "Trying AMBE3003USB hard reset" << std::endl;
std::cout << "Trying DF2ET-3003 hard reset" << std::endl;
ftStatus = FT_ClrDtr( m_FtdiHandle );
CTimePoint::TaskSleepFor(10);
@ -152,11 +152,11 @@ bool CUsb3003DF2ETInterface::ResetDevice(void)
ok = ((len == 7) && (rxpacket[4] == PKT_READY));
if ( ok )
{
std::cout << "AMBE3003USB hard reset succeeded" << std::endl;
std::cout << "DF2ET-3003 hard reset succeeded" << std::endl;
}
else
{
std::cout << "AMBE3003USB hard reset failed" << std::endl;
std::cout << "DF2ET-3003 hard reset failed" << std::endl;
}
}
return ok;