-
-
Notifications
You must be signed in to change notification settings - Fork 470
Closed
Labels
conclusion: invalidIssue/PR not validIssue/PR not validtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
Describe the bug
When i attempt to compile a skech with an itoa instruction with STM32 (not the official STM32 one but Dan Down version)
https://dan.drown.org/stm32duino/package_STM32duino_index.json
i've got an error on this
/xxxx/test_itoa/test_itoa.ino: In function 'void loop()':
/xxxx/test_itoa/test_itoa.ino:25:19: error: 'itoa' was not declared in this scope
itoa(num,snum,10);
^
Compilation error: Error: 2 UNKNOWN: exit status 1
my script
int compteur=0;
char nom[] = ".raw";
int num = 0;
char snum[3];
int numOld = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
if (random(0,4)==0) {
while(numOld == num) {
num = random(0,21);
}
} else {
num = compteur;
compteur++;
compteur = compteur%22;
}
numOld = num;
itoa(num,snum,10);
char chaine[8] = {};
strncat(chaine,snum,3);
strncat(chaine,nom,7);
Serial.println(chaine);
delay(1000);
}
To Reproduce
Steps to reproduce the behavior:
- copy the script
- add any STM32 Board
- Compile
Expected behavior
On IDE 1.8.10 it compile perfectly with the same package_index
Desktop (please complete the following information):
- OS: Macos
- Version: 10.14.6
Metadata
Metadata
Assignees
Labels
conclusion: invalidIssue/PR not validIssue/PR not validtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project