提交 8c33af9f 编写于 作者: O openharmony_ci 提交者: Gitee

!100 【轻量级 PR】:解决watchdog超时重启

Merge pull request !100 from zhouhouxin/N/A
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "samgr_lite.h" #include "samgr_lite.h"
#define OPER_INTERVAL 200 // 200 ms #define OPER_INTERVAL 200 // 200 ms
#define PRESSURE_BASE (1024 * 10) #define PRESSURE_BASE (10)
enum MessageId { enum MessageId {
MSG_NO, // receiver does not send response MSG_NO, // receiver does not send response
...@@ -385,9 +385,8 @@ static void ReleaseIUnknown(DemoApi *demoApi) ...@@ -385,9 +385,8 @@ static void ReleaseIUnknown(DemoApi *demoApi)
static void DemoHandlerAndCheck(const Request *request, const Response *response) static void DemoHandlerAndCheck(const Request *request, const Response *response)
{ {
printf("[hctest]DemoHandlerAndCheck request: %s\n", (char *)request->data); (void)request;
(void)response;
printf("[hctest]DemoHandlerAndCheck response: %s\n", (char *)response->data);
} }
LITE_TEST_SUIT(test, samgr, SendRequestTestSuite); LITE_TEST_SUIT(test, samgr, SendRequestTestSuite);
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "samgr_lite.h" #include "samgr_lite.h"
#define OPER_INTERVAL 200 // 200 ms #define OPER_INTERVAL 200 // 200 ms
#define PRESSURE_BASE (1024 * 10) #define PRESSURE_BASE (10)
enum MessageId { enum MessageId {
MSG_NO = 1, // receiver does not send response MSG_NO = 1, // receiver does not send response
...@@ -321,9 +321,8 @@ static void ReleaseIUnknown(DemoApi *demoApi) ...@@ -321,9 +321,8 @@ static void ReleaseIUnknown(DemoApi *demoApi)
static void DemoHandlerAndCheck(const Request *request, const Response *response) static void DemoHandlerAndCheck(const Request *request, const Response *response)
{ {
printf("[hctest]DemoHandlerAndCheck request: %s\n", (char *)request->data); (void)request;
(void)response;
printf("[hctest]DemoHandlerAndCheck response: %s\n", (char *)response->data);
} }
static void DemoHandler(const Request *request, const Response *response) static void DemoHandler(const Request *request, const Response *response)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册