Skip to content

Commit 46f9e23

Browse files
committed
Tweaks as a result of RP2350 porting of the framework
1 parent 901e83d commit 46f9e23

File tree

8 files changed

+15
-14
lines changed

8 files changed

+15
-14
lines changed

src/core/flux_base/flxCoreLog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class flxLogging
143143

144144
//-------------------------------------------------------------------------
145145
// generic log interface - for flash strings
146-
int logPrintf(const flxLogLevel_t level, bool newline, const __FlashStringHelper *fmt, ...);
146+
int logPrintf(const flxLogLevel_t level, bool newline, const arduino::__FlashStringHelper *fmt, ...);
147147

148148
//-------------------------------------------------------------------------
149149
// generic log interface

src/core/flux_base/flxCoreTypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <string>
2222
#include <type_traits>
2323
#include <vector>
24+
#include <stdexcept>
2425

2526
#include "flxCoreLog.h"
2627
#include "flxUtils.h"

src/core/flux_base/flxSerial.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ class flxSerial_ : public flxWriter
9797
flxSerial_() : _headerWritten{false}, _colorEnabled{false} {};
9898

9999
// Color strings for serial consoles
100-
static constexpr char *kClrNormal = "\033[0;39m";
101-
static constexpr char *kClrGreen = "\033[1;32m";
102-
static constexpr char *kClrYellow = "\033[1;33m";
103-
static constexpr char *kClrRed = "\033[1;31m";
104-
static constexpr char *kClrBlue = "\033[1;34m";
105-
static constexpr char *kClrWhite = "\033[1;37m";
100+
static constexpr const char *kClrNormal = "\033[0;39m";
101+
static constexpr const char *kClrGreen = "\033[1;32m";
102+
static constexpr const char *kClrYellow = "\033[1;33m";
103+
static constexpr const char *kClrRed = "\033[1;31m";
104+
static constexpr const char *kClrBlue = "\033[1;34m";
105+
static constexpr const char *kClrWhite = "\033[1;37m";
106106

107107
bool _headerWritten;
108108

src/core/flux_base/flxUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ void flx_utils::timestampISO8601(time_t &t_time, char *buffer, size_t length, bo
403403
void flx_utils::formatByteString(uint64_t nBytes, uint prec, char *szBuffer, size_t len)
404404
{
405405

406-
char *sizeNames[] = {"B", "KB", "MB", "GB", "TB"};
406+
const char *sizeNames[] = {"B", "KB", "MB", "GB", "TB"};
407407

408408
if (nBytes < 0)
409409
nBytes = 0;

src/core/flux_logging/flxLogger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void flxLogger::logMessage(char *header, char *message)
362362
void flxLogger::updateTimeParameterName(void)
363363
{
364364

365-
char *timeTitle = "Time";
365+
const char *timeTitle = "Time";
366366
switch (_timestampType)
367367
{
368368
case TimeStampMillis:

src/device/device_gnss/flxDevGNSS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class flxDevGNSS : public flxDeviceI2CType<flxDevGNSS>, public flxIClock, public
8383
float read_pdop();
8484
float read_horiz_acc();
8585
float read_vert_acc();
86-
uint read_tow();
86+
uint32_t read_tow();
8787
std::string read_iso8601();
8888
std::string read_yyyy_mm_dd();
8989
std::string read_yyyy_dd_mm();

src/device/device_nau7802/flxDevNAU7802.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ class flxDevNAU7802 : public flxDeviceI2CType<flxDevNAU7802>, public NAU7802
7070

7171
// methods used to get values for our RW properties
7272
int32_t get_zero_offset();
73-
void set_zero_offset(int);
73+
void set_zero_offset(int32_t);
7474
float get_calibration_factor();
7575

7676
void set_calibration_factor(float);
7777

7878
// methods for the external calibration offset and gain hidden properties
7979
int32_t get_ext_offset(void);
80-
void set_ext_offset(int);
80+
void set_ext_offset(int32_t);
8181

8282
uint32_t get_ext_gain(void);
83-
void set_ext_gain(uint);
83+
void set_ext_gain(uint32_t);
8484

8585
// methods used to set our input parameters
8686
void calculate_zero_offset();

src/device/device_pasco2v01/flxDevPASCO2V01.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class flxDevPASCO2V01 : public flxDeviceI2CType<flxDevPASCO2V01>
6666
PASCO2Ino *_theSensor;
6767

6868
// methods used to get values for our output parameters
69-
uint read_CO2();
69+
uint32_t read_CO2();
7070

7171
// methods used to get values for our RW properties
7272
bool get_auto_calibrate();

0 commit comments

Comments
 (0)