mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
DataFlash: correct use of #defines
HIL_BOARD_AVR_SITL was renamed Move use of define to after include where it is defined
This commit is contained in:
parent
a77dd59dc6
commit
4548466701
@ -527,7 +527,7 @@ bool DataFlash_MAVLink::send_log_block(struct dm_block &block)
|
|||||||
if (comm_get_txspace(chan) < 500) {
|
if (comm_get_txspace(chan) < 500) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
if (rand() < 0.1) {
|
if (rand() < 0.1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -4,9 +4,10 @@
|
|||||||
#ifndef __DATAFLASH_SITL_H__
|
#ifndef __DATAFLASH_SITL_H__
|
||||||
#define __DATAFLASH_SITL_H__
|
#define __DATAFLASH_SITL_H__
|
||||||
|
|
||||||
|
#include <AP_HAL/AP_HAL.h>
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL.h>
|
|
||||||
#include "DataFlash_Block.h"
|
#include "DataFlash_Block.h"
|
||||||
|
|
||||||
class DataFlash_SITL : public DataFlash_Block
|
class DataFlash_SITL : public DataFlash_Block
|
||||||
|
Loading…
Reference in New Issue
Block a user