mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-08-10 21:27:48 +00:00
Fix get function functionality
To meet the documentation fix the `get` function to return the value of the `default` parameter if an inactive setting is handled. Signed-off-by: Gabor Mezei <[email protected]>
This commit is contained in:
@@ -90,7 +90,7 @@ class Config:
|
||||
|
||||
If a #define for name is present but commented out, return default.
|
||||
"""
|
||||
if name in self.settings:
|
||||
if name in self:
|
||||
return self.settings[name].value
|
||||
else:
|
||||
return default
|
||||
|
||||
Reference in New Issue
Block a user