mirror of https://github.com/ARMmbed/mbed-os.git
Revert greentea_getc() to return 'int'
parent
088d151507
commit
82d948de6b
|
@ -28,7 +28,7 @@ void GREENTEA_SETUP(const int timeout, const char * host_test);
|
|||
void greentea_send_kv(const char * key, const char * val);
|
||||
int greentea_parse_kv(char * key, char * val,
|
||||
const int key_len, const int val_len);
|
||||
char greentea_getc();
|
||||
int greentea_getc();
|
||||
|
||||
#endif /* TEST_ENV_C_H */
|
||||
|
||||
|
|
|
@ -554,7 +554,7 @@ enum Token {
|
|||
* \return Next character from the stream or EOF if stream has ended.
|
||||
*
|
||||
*/
|
||||
extern "C" char greentea_getc() {
|
||||
extern "C" int greentea_getc() {
|
||||
return greentea_serial->getc();
|
||||
}
|
||||
|
||||
|
@ -683,7 +683,7 @@ static int isstring(int c) {
|
|||
*
|
||||
*/
|
||||
static int gettok(char *out_str, const int str_size) {
|
||||
static char LastChar = '!';
|
||||
static int LastChar = '!';
|
||||
static int str_idx = 0;
|
||||
|
||||
// whitespace ::=
|
||||
|
|
Loading…
Reference in New Issue