mirror of https://github.com/rusefi/rusefi.git
we allow using of schedulig_s::getMomentUs schedulig_s::getMomentRaw only in unit tests
This commit is contained in:
parent
291dadedd1
commit
c6f8aaf668
|
@ -21,7 +21,7 @@ void * action_s::getArgument() const {
|
|||
}
|
||||
|
||||
#if EFI_UNIT_TEST
|
||||
efitick_t scheduling_s::getMomentUs() {
|
||||
efitick_t scheduling_s::getMomentUs() const {
|
||||
return NT2US(momentX);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -61,16 +61,18 @@ private:
|
|||
*/
|
||||
#pragma pack(push, 4)
|
||||
struct scheduling_s {
|
||||
efitick_t getMomentNt() {
|
||||
efitick_t getMomentNt() const {
|
||||
return momentX;
|
||||
}
|
||||
|
||||
efitick_t getMomentUs();
|
||||
#if EFI_UNIT_TEST
|
||||
efitick_t getMomentUs() const;
|
||||
|
||||
// todo: get rid of this 'I am not sure what's the proper type' method once we are done cleaning things up in unit tests
|
||||
efitick_t getMomentRaw() {
|
||||
efitick_t getMomentRaw() const {
|
||||
return momentX;
|
||||
}
|
||||
#endif
|
||||
|
||||
void setMomentX(efitick_t p_moment) {
|
||||
momentX = p_moment;
|
||||
|
|
Loading…
Reference in New Issue