fix some shit
This commit is contained in:
parent
0a85320c68
commit
0398076df2
@ -33,8 +33,6 @@ find_program(CMAKE_OBJCOPY NAMES ${TARGET_TRIPLET}-objcopy HINTS ${TOOLCHAIN_BIN
|
|||||||
find_program(CMAKE_OBJDUMP NAMES ${TARGET_TRIPLET}-objdump HINTS ${TOOLCHAIN_BIN_PATH})
|
find_program(CMAKE_OBJDUMP NAMES ${TARGET_TRIPLET}-objdump HINTS ${TOOLCHAIN_BIN_PATH})
|
||||||
find_program(CMAKE_SIZE NAMES ${TARGET_TRIPLET}-size HINTS ${TOOLCHAIN_BIN_PATH})
|
find_program(CMAKE_SIZE NAMES ${TARGET_TRIPLET}-size HINTS ${TOOLCHAIN_BIN_PATH})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function(print_size_of_target TARGET)
|
function(print_size_of_target TARGET)
|
||||||
add_custom_target(${TARGET}_always_display_size
|
add_custom_target(${TARGET}_always_display_size
|
||||||
ALL COMMAND ${CMAKE_SIZE} "$<TARGET_FILE:${TARGET}>"
|
ALL COMMAND ${CMAKE_SIZE} "$<TARGET_FILE:${TARGET}>"
|
||||||
|
@ -35,9 +35,6 @@ int main(void)
|
|||||||
|
|
||||||
/* ---------- debug start ---------- */
|
/* ---------- debug start ---------- */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ---------- debug end ---------- */
|
/* ---------- debug end ---------- */
|
||||||
|
|
||||||
printf("\r\n");
|
printf("\r\n");
|
||||||
@ -52,12 +49,12 @@ int main(void)
|
|||||||
UltraSonic_PwmOut_Cycles(ULTRASONIC_CYCLES);
|
UltraSonic_PwmOut_Cycles(ULTRASONIC_CYCLES);
|
||||||
delay_ms(2);
|
delay_ms(2);
|
||||||
// printf("cap_val:%ld\t", g_capture_value);
|
// printf("cap_val:%ld\t", g_capture_value);
|
||||||
// const char* result = (g_capture_value <= CAPTURE_VALUE_MAX) ? "Distance: %d\t" : "Over Range\t";
|
|
||||||
if (g_capture_value <= CAPTURE_VALUE_MAX) {
|
if (g_capture_value <= CAPTURE_VALUE_MAX) {
|
||||||
g_distance_uint16 = UltraSonic_CalcDistance(g_capture_value);
|
g_distance_uint16 = UltraSonic_CalcDistance(g_capture_value);
|
||||||
} else {
|
} else {
|
||||||
g_distance_uint16 = 0x0000;
|
g_distance_uint16 = 0x0000;
|
||||||
}
|
}
|
||||||
|
// const char* result = (g_capture_value <= CAPTURE_VALUE_MAX) ? "Distance: %d\t" : "Over Range\t";
|
||||||
// printf(result, distance_uint16);
|
// printf(result, distance_uint16);
|
||||||
|
|
||||||
// printf("Temp:%d\n", MLX90614_GetObjectTemperature());
|
// printf("Temp:%d\n", MLX90614_GetObjectTemperature());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user