diff --git a/firmware/controllers/core/big_buffer.cpp b/firmware/controllers/core/big_buffer.cpp index 38e9e9b1be..ca1f19c6b3 100644 --- a/firmware/controllers/core/big_buffer.cpp +++ b/firmware/controllers/core/big_buffer.cpp @@ -9,7 +9,7 @@ static BigBufferUser s_currentUser; static uint32_t s_bigBuffer[BIG_BUFFER_SIZE / sizeof(uint32_t)]; #if EFI_UNIT_TEST -BigBufferUser &getBigBufferCurrentUser() { +BigBufferUser getBigBufferCurrentUser() { return s_currentUser; } #endif // EFI_UNIT_TEST diff --git a/unit_tests/tests/test_big_buffer.cpp b/unit_tests/tests/test_big_buffer.cpp index 726fbc8c6f..e507f55279 100644 --- a/unit_tests/tests/test_big_buffer.cpp +++ b/unit_tests/tests/test_big_buffer.cpp @@ -1,6 +1,6 @@ #include "pch.h" -BigBufferUser &getBigBufferCurrentUser(); +BigBufferUser getBigBufferCurrentUser(); TEST(BigBuffer, CppMagic) { BigBufferHandle h = getBigBuffer(BigBufferUser::ToothLogger);