Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TY
TianYing_ty100
Commits
ed91b11b
Commit
ed91b11b
authored
Jun 19, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:更换零件号,解决编译错误
parent
97e16862
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Protocol_Lib.c
Firmware/Source/Application/BLUETOOTH/Protocol_Lib.c
+1
-1
Protocol_User.c
Firmware/Source/Application/BLUETOOTH/Protocol_User.c
+1
-1
CommonInterface.h
...ware/Source/Application/CommonInterface/CommonInterface.h
+1
-1
No files found.
Firmware/Source/Application/BLUETOOTH/Protocol_Lib.c
View file @
ed91b11b
...
@@ -257,7 +257,7 @@ Protocol_uint32_t Protocol_Send(const Protocol_uint16_t cmdID, const Protocol_ui
...
@@ -257,7 +257,7 @@ Protocol_uint32_t Protocol_Send(const Protocol_uint16_t cmdID, const Protocol_ui
}
}
// 校验码 Checksum
// 校验码 Checksum
checksum
=
getCheckSum
(
&
(
dataBuf
+
2
)
,
frameLen
-
2
);
checksum
=
getCheckSum
(
dataBuf
+
2
,
frameLen
-
2
);
dataBuf
[
frameLen
]
=
(
checksum
>>
8
)
&
0x00FF
;
dataBuf
[
frameLen
]
=
(
checksum
>>
8
)
&
0x00FF
;
frameLen
++
;
frameLen
++
;
dataBuf
[
frameLen
]
=
checksum
&
0x00FF
;
dataBuf
[
frameLen
]
=
checksum
&
0x00FF
;
...
...
Firmware/Source/Application/BLUETOOTH/Protocol_User.c
View file @
ed91b11b
...
@@ -27,7 +27,7 @@ static Protocol_uint8_t UsartDataBuf [ 256 ];
...
@@ -27,7 +27,7 @@ static Protocol_uint8_t UsartDataBuf [ 256 ];
static
Protocol_uint8_t
mDataBufPtr
[
UART_DATA_BUF_LEN
];
static
Protocol_uint8_t
mDataBufPtr
[
UART_DATA_BUF_LEN
];
static
Protocol_uint8_t
Protocol_OpenUart
(
void
);
static
Protocol_uint8_t
Protocol_OpenUart
(
void
);
static
Protocol_uint32_t
Protocol_UartRead
(
Protocol_uint8_t
*
pData
,
Protocol_uint32_t
len
)
static
Protocol_uint32_t
Protocol_UartRead
(
Protocol_uint8_t
*
pData
,
Protocol_uint32_t
len
)
;
static
Protocol_uint32_t
Protocol_UartSend
(
const
Protocol_uint8_t
*
pData
,
Protocol_uint32_t
u32Len
);
static
Protocol_uint32_t
Protocol_UartSend
(
const
Protocol_uint8_t
*
pData
,
Protocol_uint32_t
u32Len
);
static
void
Protocol_UartHandle
(
const
Protocol_Data_t
*
pData
);
static
void
Protocol_UartHandle
(
const
Protocol_Data_t
*
pData
);
...
...
Firmware/Source/Application/CommonInterface/CommonInterface.h
View file @
ed91b11b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#define TY200_080000b 0
#define TY200_080000b 0
#define TY200_080000b_ty 1
#define TY200_080000b_ty 1
#define IC_Current TY200_080000b //选择当前程序为哪个零件号的仪表
#define IC_Current TY200_080000b
_ty
//选择当前程序为哪个零件号的仪表
/*COMMON INTERFACE*/
/*COMMON INTERFACE*/
typedef
enum
typedef
enum
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment