bmp: Use tab instead of spaces.
This commit is contained in:
parent
3027636002
commit
c4c1da6205
10
src/bmp.cpp
10
src/bmp.cpp
|
|
@ -98,9 +98,11 @@ Bmp::Bmp(std::string dev,
|
||||||
fprintf(stderr, "Select Probe with -s <(Partial) Serial "
|
fprintf(stderr, "Select Probe with -s <(Partial) Serial "
|
||||||
"Number\n");
|
"Number\n");
|
||||||
else
|
else
|
||||||
fprintf(stderr, "Do no match given serial \"%s\"\n", serial.c_str());
|
fprintf(stderr, "Do no match given serial \"%s\"\n",
|
||||||
|
serial.c_str());
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "Could not opendir %s: %s\n", name, strerror(errno));
|
fprintf(stderr, "Could not opendir %s: %s\n", name,
|
||||||
|
strerror(errno));
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -143,7 +145,7 @@ Bmp::Bmp(std::string dev,
|
||||||
REMOTE_HL_CHECK_STR);
|
REMOTE_HL_CHECK_STR);
|
||||||
platform_buffer_write(construct, s);
|
platform_buffer_write(construct, s);
|
||||||
s = platform_buffer_read(construct, REMOTE_MAX_MSG_SIZE);
|
s = platform_buffer_read(construct, REMOTE_MAX_MSG_SIZE);
|
||||||
#define NEEDED_BMP_VERSION 2
|
#define NEEDED_BMP_VERSION 2
|
||||||
if ((!s) || (construct[0] == REMOTE_RESP_ERR) ||
|
if ((!s) || (construct[0] == REMOTE_RESP_ERR) ||
|
||||||
((construct[1] - '0') < NEEDED_BMP_VERSION)) {
|
((construct[1] - '0') < NEEDED_BMP_VERSION)) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
|
@ -382,7 +384,7 @@ int Bmp::platform_buffer_read(char *data, int maxsize)
|
||||||
} else {
|
} else {
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
}while ((s >= 0) && ((c - data) < maxsize));
|
} while ((s >= 0) && ((c - data) < maxsize));
|
||||||
DEBUG_WARN("Failed to read\n");
|
DEBUG_WARN("Failed to read\n");
|
||||||
return(-6);
|
return(-6);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Bmp : public JtagInterface {
|
class Bmp : public JtagInterface {
|
||||||
public:
|
public:
|
||||||
Bmp(std::string dev,
|
Bmp(std::string dev,
|
||||||
const std::string &serial, uint32_t clkHZ, bool verbose);
|
const std::string &serial, uint32_t clkHZ, bool verbose);
|
||||||
~Bmp(void);
|
~Bmp(void);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue