mirror of
https://github.com/WeActStudio/ArduinoCore-AT32F4.git
synced 2026-05-21 09:22:01 +00:00
add SoftwareSerial and fix some bug
This commit is contained in:
@@ -297,13 +297,19 @@ extern "C" {
|
||||
|
||||
int Print::printf (const char *__restrict __format, ...)
|
||||
{
|
||||
char printf_buff[PRINT_PRINTF_BUFFER_LENGTH];
|
||||
// char printf_buff[PRINT_PRINTF_BUFFER_LENGTH];
|
||||
|
||||
// va_list args;
|
||||
// va_start(args, __format);
|
||||
// int ret_status = vsnprintf(printf_buff, sizeof(printf_buff), __format, args);
|
||||
// va_end(args);
|
||||
// print(printf_buff);
|
||||
// return ret_status;
|
||||
FILE *__restrict __stream;
|
||||
int ret_status = 0;
|
||||
va_list args;
|
||||
va_start(args, __format);
|
||||
int ret_status = vsnprintf(printf_buff, sizeof(printf_buff), __format, args);
|
||||
va_start(args,__format);
|
||||
ret_status = vfprintf(__stream, __format, args);
|
||||
va_end(args);
|
||||
print(printf_buff);
|
||||
|
||||
return ret_status;
|
||||
return ret_status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user