[ion/device/display] Make sure the calibration is properly sent

This commit is contained in:
Romain Goyet
2019-06-17 11:26:53 +02:00
parent d07b3382e9
commit 7e1b4efbd2

View File

@@ -323,7 +323,8 @@ void initPanel() {
const uint8_t * gammaCalibration = nullptr;
uint32_t panelId = panelIdentifier();
if (panelId == 0x4E4101) {
const uint8_t calibration[] = {0xF0, 0x8, 0x12, 0x9, 0xC, 0x1A, 0x36, 0x57, 0x43, 0x29, 0x19, 0x15, 0x2D, 0x32};
// Don't forget the "static" qualifier, otherwise this array can be deleted before reaching send_long_command
static const uint8_t calibration[] = {0xF0, 0x8, 0x12, 0x9, 0xC, 0x1A, 0x36, 0x57, 0x43, 0x29, 0x19, 0x15, 0x2D, 0x32};
gammaCalibration = calibration;
}
if (gammaCalibration != nullptr) {