Skip to content

Commit af31e0c

Browse files
committed
Refine SonarQube call give src directory
fix datatype finding
1 parent e2505e3 commit af31e0c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
-Dsonar.host.url=https://sonarcloud.io \
4949
-Dsonar.organization=friends-of-openbikesensor \
5050
-Dsonar.projectKey=Friends-of-OpenBikeSensor_OpenBikeSensorFirmware \
51+
-Dsonar.cpd.exclusions=bin/*** \
5152
-Dsonar.sources=. \
5253
-Dsonar.sourceEncoding=UTF-8 \
5354
-Dsonar.cfamily.cache.enabled=false \

OpenBikeSensorFirmware/sensor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const uint8_t MEDIAN_DISTANCE_MEASURES = 3;
3030

3131
struct HCSR04SensorInfo
3232
{
33-
int triggerPin = 15;
34-
int echoPin = 4;
33+
uint8_t triggerPin = 15;
34+
uint8_t echoPin = 4;
3535
int timeout = 15000;
3636
uint8_t offset = 0;
3737
uint8_t distance = 0;

0 commit comments

Comments
 (0)