Fix null pointer dereference in SPD

This commit is contained in:
Milan Čermák 2024-12-10 14:37:42 +00:00 committed by Adam Honse
parent 48f0084a9f
commit ae94ce1252
4 changed files with 50 additions and 8 deletions

View file

@ -23,6 +23,9 @@
#include "hidapi_wrapper.h"
#include "i2c_smbus.h"
#include "filesystem.h"
#include "json.hpp"
using json = nlohmann::json;
#define HID_INTERFACE_ANY -1
#define HID_USAGE_ANY -1
@ -231,6 +234,7 @@ private:
void InitThreadFunction();
bool ProcessPreDetection();
void ProcessPostDetection();
bool IsAnyDimmDetectorEnabled(json &detector_settings);
/*-------------------------------------------------------------------------------------*\
| Static pointer to shared instance of ResourceManager |