valist in logMsg, test on platform

This commit is contained in:
2020-10-29 20:50:50 +01:00
parent b55d74a9cd
commit e476930526
3 changed files with 24 additions and 13 deletions

View File

@ -24,7 +24,9 @@ void my_errorHandler() {
}
void helloWorld(void *handle) {
logMsg("Hello World\n\r");
static uint32_t cnt = 0;
logMsg("Hello World, %ld\n\r", cnt);
cnt++;
}
void helloMeterbus(void *handle) {
@ -36,7 +38,7 @@ void my_setup_2() {
led(RED, OFF);
led(GREEN, ON);
schAdd(helloWorld, NULL, 0, 5000);
schAdd(helloWorld, NULL, 0, 1000);
schAdd(helloMeterbus, NULL, 0, 10000);
}