Skip to content

Commit

Permalink
Fix cast
Browse files Browse the repository at this point in the history
  • Loading branch information
200km committed Oct 11, 2023
1 parent 1f671bb commit f774a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/aocs/oem7600.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Oem7600Command Oem7600::DecodeCommand() {
// find empty space character(separator)
for (size_t i = 0; i < rx_buffer_.size(); i++) {
if (rx_buffer_[i] == ' ') {
space_pos[space_pos_count] = i;
space_pos[space_pos_count] = (uint8_t)i;
space_pos_count++;

if (space_pos_count > OEM7600_MAX_CMD_ARG) {
Expand Down

0 comments on commit f774a44

Please sign in to comment.