Skip to content

Commit b72dbe3

Browse files
authored
Merge pull request #23 from sparkfun/bring_up_parent_constructors
Bring up parent constructors for child classes
2 parents e296039 + 68666f9 commit b72dbe3

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

src/sfe_lara_r6.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,44 @@
77
// Base LARA-R6 class
88
class SparkFun_ublox_LARA_R6 : public SparkFun_ublox_Cellular
99
{
10+
// Bring up parent constructors
11+
using SparkFun_ublox_Cellular::SparkFun_ublox_Cellular;
1012
};
1113

1214
class SparkFun_ublox_LARA_R6001 : public SparkFun_ublox_LARA_R6, public SparkFun_ublox_Cellular_Voice_Base<SparkFun_ublox_LARA_R6001>
1315
{
16+
// Bring up parent constructors
17+
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
1418
};
1519

1620
class SparkFun_ublox_LARA_R6001D : public SparkFun_ublox_LARA_R6
1721
{
22+
// Bring up parent constructors
23+
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
1824
};
1925

2026
class SparkFun_ublox_LARA_R6401 : public SparkFun_ublox_LARA_R6, public SparkFun_ublox_Cellular_Voice_Base<SparkFun_ublox_LARA_R6401>
2127
{
28+
// Bring up parent constructors
29+
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
2230
};
2331

2432
class SparkFun_ublox_LARA_R6401D : public SparkFun_ublox_LARA_R6
2533
{
34+
// Bring up parent constructors
35+
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
2636
};
2737

2838
class SparkFun_ublox_LARA_R6801_00B : public SparkFun_ublox_LARA_R6, public SparkFun_ublox_Cellular_Voice_Base<SparkFun_ublox_LARA_R6801_00B>
2939
{
40+
// Bring up parent constructors
41+
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
3042
};
3143

3244
class SparkFun_ublox_LARA_R6801D : public SparkFun_ublox_LARA_R6
3345
{
46+
// Bring up parent constructors
47+
using SparkFun_ublox_LARA_R6::SparkFun_ublox_LARA_R6;
3448
};
3549

3650
#endif

src/sfe_sara_r5.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ class SparkFun_ublox_SARA_R5 : public SparkFun_ublox_Cellular
1818
public:
1919
SparkFun_ublox_SARA_R5();
2020

21+
// Bring up parent constructors
22+
using SparkFun_ublox_Cellular::SparkFun_ublox_Cellular;
23+
2124
UBX_CELL_error_t setUtimeMode(
2225
UBX_CELL_utime_mode_t mode = UBX_CELL_UTIME_MODE_PPS,
2326
UBX_CELL_utime_sensor_t sensor = UBX_CELL_UTIME_SENSOR_GNSS_LTE); // Time mode, source etc. (+UTIME)
@@ -52,22 +55,32 @@ class SparkFun_ublox_SARA_R5 : public SparkFun_ublox_Cellular
5255

5356
class SparkFun_ublox_SARA_R500S : public SparkFun_ublox_SARA_R5
5457
{
58+
// Bring up parent constructors
59+
using SparkFun_ublox_SARA_R5::SparkFun_ublox_SARA_R5;
5560
};
5661

5762
class SparkFun_ublox_SARA_R500S_01B : public SparkFun_ublox_SARA_R5
5863
{
64+
// Bring up parent constructors
65+
using SparkFun_ublox_SARA_R5::SparkFun_ublox_SARA_R5;
5966
};
6067

6168
class SparkFun_ublox_SARA_R500S_61B : public SparkFun_ublox_SARA_R5
6269
{
70+
// Bring up parent constructors
71+
using SparkFun_ublox_SARA_R5::SparkFun_ublox_SARA_R5;
6372
};
6473

6574
class SparkFun_ublox_SARA_R510M8S_61B : public SparkFun_ublox_SARA_R5
6675
{
76+
// Bring up parent constructors
77+
using SparkFun_ublox_SARA_R5::SparkFun_ublox_SARA_R5;
6778
};
6879

6980
class SparkFun_ublox_SARA_R510S : public SparkFun_ublox_SARA_R5
7081
{
82+
// Bring up parent constructors
83+
using SparkFun_ublox_SARA_R5::SparkFun_ublox_SARA_R5;
7184
};
7285

7386
#endif

src/sfe_ublox_cellular_voice.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ template <typename T> class SparkFun_ublox_Cellular_Voice_Base
161161

162162
class SparkFun_ublox_Cellular_Voice : public SparkFun_ublox_Cellular, public SparkFun_ublox_Cellular_Voice_Base<SparkFun_ublox_Cellular_Voice>
163163
{
164+
// Bring up parent constructors
165+
using SparkFun_ublox_Cellular::SparkFun_ublox_Cellular;
164166
};
165167

166168
#endif

0 commit comments

Comments
 (0)