QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

adapt/gps.cpp

Committer:
dylanembed123
Date:
2014-04-05
Revision:
12:e42985e3ea64
Parent:
8:28b866df62cf
Child:
14:6be57da62283

File content as of revision 12:e42985e3ea64:

#include "gps.h"

Serial* GPS::gps=NULL;

Serial& GPS::getSerial(){
    if(gps==NULL){
        // Init Serial USB
        gps=new Serial(GPSPINTX,GPSPINRX);
        gps->baud(GPSBAUD);
    }
    return *gps;
}