diff --git a/mk/source.mk b/mk/source.mk index 4033976fac..7802ad95fb 100644 --- a/mk/source.mk +++ b/mk/source.mk @@ -172,7 +172,7 @@ COMMON_SRC = \ io/rcdevice_cam.c \ io/rcdevice.c \ io/gps.c \ - io/gps_utils.c \ + io/gps_utils.c \ io/ledstrip.c \ io/pidaudio.c \ osd/osd.c \ diff --git a/src/main/drivers/serial.c b/src/main/drivers/serial.c index e7bb602676..4f85663b0a 100644 --- a/src/main/drivers/serial.c +++ b/src/main/drivers/serial.c @@ -20,6 +20,7 @@ #include #include +#include #include "platform.h" @@ -27,7 +28,7 @@ void serialPrint(serialPort_t *instance, const char *str) { - serialWriteBuf(instance, str, strlen(str); + serialWriteBuf(instance, (const uint8_t*)str, strlen(str)); } uint32_t serialGetBaudRate(serialPort_t *instance) diff --git a/src/main/io/gps_utils.c b/src/main/io/gps_utils.c index 208787b6a2..c30a4dc98e 100644 --- a/src/main/io/gps_utils.c +++ b/src/main/io/gps_utils.c @@ -1,5 +1,28 @@ +/* + * This file is part of Betaflight. + * + * Betaflight is free software. You can redistribute this software + * and/or modify this software under the terms of the GNU General + * Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later + * version. + * + * Betaflight is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this software. + * + * If not, see . + */ + #include +#include "platform.h" + #include "common/printf.h" #include "io/serial.h" diff --git a/src/main/io/gps_utils.h b/src/main/io/gps_utils.h index 2aaba1f2d9..51bda13037 100644 --- a/src/main/io/gps_utils.h +++ b/src/main/io/gps_utils.h @@ -1,3 +1,24 @@ +/* + * This file is part of Betaflight. + * + * Betaflight is free software. You can redistribute this software + * and/or modify this software under the terms of the GNU General + * Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later + * version. + * + * Betaflight is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this software. + * + * If not, see . + */ + #pragma once int nmeaPrintf(serialPort_t *port, const char *format, ...); diff --git a/src/test/unit/gps_nmea_unittest.cc b/src/test/unit/gps_nmea_unittest.cc index 847aa6d43a..aa90e58fd6 100644 --- a/src/test/unit/gps_nmea_unittest.cc +++ b/src/test/unit/gps_nmea_unittest.cc @@ -1,18 +1,22 @@ /* - * This file is part of Cleanflight. + * This file is part of Betaflight. * - * Cleanflight is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * Betaflight is free software. You can redistribute this software + * and/or modify this software under the terms of the GNU General + * Public License as published by the Free Software Foundation, + * either version 3 of the License, or (at your option) any later + * version. * - * Cleanflight is distributed in the hope that it will be useful, + * Betaflight is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * You should have received a copy of the GNU General Public License - * along with Cleanflight. If not, see . + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this software. + * + * If not, see . */ #include