This commit is contained in:
yelvlab 2025-01-08 13:57:25 +08:00
parent b4901f5f37
commit e940c69d49

View File

@ -102,24 +102,6 @@ void gd60914_tempture_report(void) {
printf("%c%c", g_temperature_uint8[1], g_temperature_uint8[0]);
printf("%c", calculate_crc(combined_data, 6));
}
// void eddy_current_value_report(void) {
// static uint32_t eddy_current_value_uint32 = 0;
//
// eddy_current_value_uint32 = ldc1612_get_raw_channel_result(CHANNEL_0);
//
// package_data[0] = (eddy_current_value_uint32 >> 24) & 0xFF;
// package_data[1] = (eddy_current_value_uint32 >> 16) & 0xFF;
// package_data[2] = (eddy_current_value_uint32 >> 8) & 0xFF;
// package_data[3] = eddy_current_value_uint32 & 0xFF;
//
// uint8_t combined_data[7];
// 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%c", package_data[0], package_data[1], package_data[2], package_data[3]);
// printf("%c", calculate_crc(combined_data, 8));
// }
void ultrasonic_distance_report(void) {
static uint16_t distance_uint16 = 0;