Map3D should not be silently return 0 if not initialized fix #6461

This commit is contained in:
rusefi 2024-05-03 21:43:06 -04:00
parent a3a492d46f
commit 16a4144098
1 changed files with 1 additions and 4 deletions

View File

@ -49,10 +49,7 @@ public:
// RPM is usually X/Column
float getValue(float xColumn, float yRow) const final {
if (!m_values) {
#if EFI_UNIT_TEST
throw std::runtime_error("Access to uninitialized table");
#endif
// not initialized, return 0
criticalError("Access to uninitialized table: %s", m_name);
return 0;
}