Skip to content

Commit f5310e0

Browse files
Simplify constructor: Use default arg
Co-authored-by: Patrick José Pereira <[email protected]>
1 parent e78199a commit f5310e0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/KellerLD.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212
#define LD_SCALING4 0x16
1313

1414

15-
KellerLD::KellerLD()
16-
: i2cAddress(LD_DEFAULT_ADDR) {
17-
}
18-
19-
KellerLD::KellerLD(int i2cAddress)
15+
KellerLD::KellerLD(int i2cAddress = LD_DEFAULT_ADDR)
2016
: i2cAddress(i2cAddress) {
2117
}
2218

0 commit comments

Comments
 (0)