AP_Radio: Change direct value to define name

This commit is contained in:
murata 2019-09-24 01:52:28 +09:00 committed by Andrew Tridgell
parent a74123148b
commit 6de2311689

View File

@ -1438,7 +1438,7 @@ void AP_Radio_cypress::dsm_choose_channel(void)
*/
void AP_Radio_cypress::start_recv_bind(void)
{
if (!dev->get_semaphore()->take(0)) {
if (!dev->get_semaphore()->take(HAL_SEMAPHORE_BLOCK_FOREVER)) {
// shouldn't be possible
return;
}