mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
多行宏
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "http_server/web_log.h"
|
||||
#define os_log(format, ...) custom_log("RTC", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__)
|
||||
#define os_log(format, ...) do { custom_log("RTC", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__) } while(0)
|
||||
|
||||
#include "main.h"
|
||||
#include "user_gpio.h"
|
||||
@@ -92,7 +92,7 @@ OSStatus user_rtc_init(void)
|
||||
0x1000, 0);
|
||||
require_noerr_string(err, exit, "ERROR: Unable to start the rtc thread.");
|
||||
|
||||
if (kNoErr != err) os_log("ERROR, app thread exit err: %d", err);
|
||||
if (kNoErr != err) os_log("ERROR1, app thread exit err: %d kNoErr[%d]", err, kNoErr);
|
||||
|
||||
exit:
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user