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:
DrZiplok 2011-01-10 01:19:15 +00:00
parent c2c663a188
commit afc68ba45c
1 changed files with 1 additions and 5 deletions

View File

@ -4,6 +4,7 @@
// //
#include <FastSerial.h> #include <FastSerial.h>
#include <AP_Common.h>
#include <AP_GPS.h> #include <AP_GPS.h>
FastSerialPort0(Serial); FastSerialPort0(Serial);
@ -15,11 +16,6 @@ AP_GPS_Auto GPS(&Serial1, &gps);
#define T6 1000000 #define T6 1000000
#define T7 10000000 #define T7 10000000
void * operator new(size_t size)
{
return(calloc(size, 1));
}
void setup() void setup()
{ {
Serial.begin(38400); Serial.begin(38400);