mirror of https://github.com/ArduPilot/ardupilot
Use operator new from AP_Common rather than our own. This also makes AP_Common available to the GPS drivers that work with AP_GPS_Auto.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1463 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
8c9a5d36d8
commit
07dec5e1b7
|
@ -4,6 +4,7 @@
|
|||
//
|
||||
|
||||
#include <FastSerial.h>
|
||||
#include <AP_Common.h>
|
||||
#include <AP_GPS.h>
|
||||
|
||||
FastSerialPort0(Serial);
|
||||
|
@ -15,11 +16,6 @@ AP_GPS_Auto GPS(&Serial1, &gps);
|
|||
#define T6 1000000
|
||||
#define T7 10000000
|
||||
|
||||
void * operator new(size_t size)
|
||||
{
|
||||
return(calloc(size, 1));
|
||||
}
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(38400);
|
||||
|
|
Loading…
Reference in New Issue