GCC Code Coverage Report


Directory: ./
File: firmware/console/binary/tuner_detector_utils.cpp
Date: 2025-10-03 00:57:22
Coverage Exec Excl Total
Lines: 100.0% 7 0 7
Functions: 100.0% 3 0 3
Branches: -% 0 0 0
Decisions: -% 0 - 0

Line Branch Decision Exec Source
1 //
2 // Created by kifir on 2/27/25.
3 //
4
5 #include "pch.h"
6
7 #include "tuner_detector_utils.h"
8
9 1230 bool TunerDetectorUtils::isTuningDetectorUndefined() {
10 1230 return (engineConfiguration->tuningDetector == 0);
11 }
12
13 60 uint8_t TunerDetectorUtils::getUserEnteredTuningDetector() {
14 60 return engineConfiguration->tuningDetector + TUNING_DETECTOR_PERSISTENCE_OFFSET;
15 }
16
17 586 void TunerDetectorUtils::setUserEnteredTuningDetector(const uint8_t tuningDetector) {
18 586 engineConfiguration->tuningDetector = tuningDetector - TUNING_DETECTOR_PERSISTENCE_OFFSET;
19 586 }
20