mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 23:00:45 +01:00
[ion/device/display] Make sure the calibration is properly sent
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user