Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sprintf отсутствует в сборке с Serial: GyverUART #27

Open
zhekaus opened this issue Feb 23, 2022 · 3 comments
Open

Comments

@zhekaus
Copy link

zhekaus commented Feb 23, 2022

Не нашёл в документации предупреждение об отсутствии sprintf в ядре.

@GyverLibs
Copy link

Sprintf вроде бы живёт в компиляторе

@zhekaus
Copy link
Author

zhekaus commented Feb 24, 2022

Этот код при выбранном Serial: GyverUART... выдает ошибку "error: 'sprintf' was not declared in this scope":

void setup() {
  char buf_str[32];
  sprintf(buf_str, "%d", 0);
}

void loop() {}

Да, можно самому добавить #include <stdio.h>

@GyverLibs
Copy link

ну вот, подключил либу и вперёд

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants