|
|
|
@ -711,7 +711,7 @@ bool CANIface::select(bool &read, bool &write,
@@ -711,7 +711,7 @@ bool CANIface::select(bool &read, bool &write,
|
|
|
|
|
{ |
|
|
|
|
const bool in_read = read; |
|
|
|
|
const bool in_write= write; |
|
|
|
|
uint64_t time = AP_HAL::micros(); |
|
|
|
|
uint64_t time = AP_HAL::micros64(); |
|
|
|
|
|
|
|
|
|
if (!read && !write) { |
|
|
|
|
//invalid request
|
|
|
|
@ -737,7 +737,7 @@ bool CANIface::select(bool &read, bool &write,
@@ -737,7 +737,7 @@ bool CANIface::select(bool &read, bool &write,
|
|
|
|
|
if ((read && in_read) || (write && in_write)) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
time = AP_HAL::micros(); |
|
|
|
|
time = AP_HAL::micros64(); |
|
|
|
|
} |
|
|
|
|
#endif // #if !defined(HAL_BUILD_AP_PERIPH) && !defined(HAL_BOOTLOADER_BUILD)
|
|
|
|
|
return true; |
|
|
|
|