From e4ee1c0eecad3dcc04ef071132ef67d852a0c974 Mon Sep 17 00:00:00 2001 From: murmur Date: Thu, 19 Dec 2024 22:53:56 +0800 Subject: [PATCH] extern deviceStatus --- protocol.c | 2 +- protocol.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol.c b/protocol.c index b975a58..f43b7a3 100644 --- a/protocol.c +++ b/protocol.c @@ -1,7 +1,7 @@ #include "protocol.h" #include -static DeviceStatus deviceStatus = { +DeviceStatus deviceStatus = { .deviceStatus = 1, .valves = {210, 120}, .pumps = {0, 0, 50, 50}, diff --git a/protocol.h b/protocol.h index 8c263c1..52d5371 100644 --- a/protocol.h +++ b/protocol.h @@ -406,6 +406,7 @@ typedef struct { extern DeviceParam dp; +extern DeviceStatus deviceStatus; // 函数声明 CmdFrameError_t ProcessHostCommand(uint8_t *rxBuf, uint8_t rxLen);