GCS_MAVLink: esp target is not STM32, so don't do stm32 specific magic
see libraries/AP_HAL_ESP32/README.md for more. Author: Charles Villard <charlesvillard10@gmail.com> Author: Buzz <davidbuzz@gmail.com>
This commit is contained in:
parent
adaccdf0ba
commit
3ecfdd5f88
@ -2774,12 +2774,14 @@ MAV_RESULT GCS_MAVLINK::handle_preflight_reboot(const mavlink_command_long_t &pa
|
||||
// the following text is unlikely to make it out...
|
||||
send_text(MAV_SEVERITY_WARNING,"deferencing a bad thing");
|
||||
|
||||
#if CONFIG_HAL_BOARD != HAL_BOARD_ESP32
|
||||
// esp32 can't do this bit, skip it, return an error
|
||||
void *foo = (void*)0xE000ED38;
|
||||
|
||||
typedef void (*fptr)();
|
||||
fptr gptr = (fptr) (void *) foo;
|
||||
gptr();
|
||||
|
||||
#endif
|
||||
return MAV_RESULT_FAILED;
|
||||
}
|
||||
if (is_equal(packet.param4, 95.0f)) {
|
||||
|
Loading…
Reference in New Issue
Block a user