为测试准备,直接输出数据

This commit is contained in:
yelvlab 2025-03-31 14:20:15 +08:00
parent 8cd24132a6
commit d0da89653f
2 changed files with 3 additions and 2 deletions

View File

@ -41,6 +41,7 @@ int main(void) {
while (1) {
delay_ms(99);
fwdgt_counter_reload();
eddy_current_value_report();
}
}

View File

@ -135,9 +135,9 @@ void eddy_current_value_report(void) {
memcpy(combined_data, package_header, 3);
memcpy(combined_data + 3, package_data, 4);
printf("%c%c%c", package_header[0], package_header[1], package_header[2]);
// printf("%c%c%c", package_header[0], package_header[1], package_header[2]);
printf("%c%c%c%c", package_data[0], package_data[1], package_data[2], package_data[3]);
printf("%c", calculate_crc(combined_data, 8));
// printf("%c", calculate_crc(combined_data, 8));
}
void tempture_value_report(void) {