chore: resolve several compiler warnings (#6749)
This commit is contained in:
@@ -36,9 +36,9 @@ class BinEepromFormat : public StorageFormat
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual QString name() { return "bin"; }
|
virtual QString name() override { return "bin"; }
|
||||||
virtual bool load(RadioData & radioData);
|
virtual bool load(RadioData & radioData) override;
|
||||||
virtual bool write(const RadioData & radioData);
|
virtual bool write(RadioData & radioData) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool extract(RadioData & radioData, const QByteArray & eeprom);
|
bool extract(RadioData & radioData, const QByteArray & eeprom);
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ class Storage : public StorageFormat
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual QString name() { return "storage"; }
|
virtual QString name() override { return "storage"; }
|
||||||
|
|
||||||
void setError(const QString & error)
|
void setError(const QString & error)
|
||||||
{
|
{
|
||||||
@@ -154,8 +154,8 @@ class Storage : public StorageFormat
|
|||||||
|
|
||||||
virtual bool load(RadioData & radioData) override;
|
virtual bool load(RadioData & radioData) override;
|
||||||
virtual bool load(GeneralSettings & generalSettings) override;
|
virtual bool load(GeneralSettings & generalSettings) override;
|
||||||
virtual bool write(RadioData & radioData);
|
virtual bool write(RadioData & radioData) override;
|
||||||
virtual bool writeModel(const RadioData & radioData, const int modelIndex);
|
virtual bool writeModel(const RadioData & radioData, const int modelIndex) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool fileExists();
|
bool fileExists();
|
||||||
|
|||||||
@@ -40,10 +40,6 @@ class ViewMainDecoration
|
|||||||
rect_t getMainZone() const;
|
rect_t getMainZone() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool showTrims;
|
|
||||||
bool showSliders;
|
|
||||||
bool showFM;
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
SLIDERS_POT1 = 0,
|
SLIDERS_POT1 = 0,
|
||||||
SLIDERS_POT2,
|
SLIDERS_POT2,
|
||||||
@@ -69,6 +65,9 @@ class ViewMainDecoration
|
|||||||
Window* w_bl;
|
Window* w_bl;
|
||||||
Window* w_bc;
|
Window* w_bc;
|
||||||
Window* w_br;
|
Window* w_br;
|
||||||
|
bool showTrims;
|
||||||
|
bool showSliders;
|
||||||
|
bool showFM;
|
||||||
|
|
||||||
Window* sliders[SLIDERS_MAX] = { 0 };
|
Window* sliders[SLIDERS_MAX] = { 0 };
|
||||||
MainViewTrim* trims[TRIMS_MAX] = { 0 };
|
MainViewTrim* trims[TRIMS_MAX] = { 0 };
|
||||||
|
|||||||
+1
-1
@@ -79,7 +79,7 @@ void Gyro::wakeup()
|
|||||||
|
|
||||||
int16_t gx = values[0];
|
int16_t gx = values[0];
|
||||||
int16_t gy = values[1];
|
int16_t gy = values[1];
|
||||||
int16_t gz = values[2];
|
// int16_t gz = values[2];
|
||||||
|
|
||||||
// integrate gyro
|
// integrate gyro
|
||||||
roll -= gx * SCALE_FACT_GYRO * DT;
|
roll -= gx * SCALE_FACT_GYRO * DT;
|
||||||
|
|||||||
Reference in New Issue
Block a user