Skip to content

Commit

Permalink
HALDisplay bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmantoine committed Apr 12, 2024
1 parent 8a5a832 commit 91e60b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions IO_HALDisplay.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* © 2023, Neil McKechnie. All rights reserved.
* © 2024, Paul Antoine
* © 2023, Neil McKechnie
* All rights reserved.
*
* This file is part of DCC++EX API
* This file is part of DCC-EX API
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -112,13 +114,14 @@ class HALDisplay : public IODevice, public DisplayInterface {
// Fill buffer with spaces
memset(_buffer, ' ', _numCols*_numRows);

_displayDriver->clearNative();

// Add device to list of HAL devices (not necessary but allows
// status to be displayed using <D HAL SHOW> and device to be
// reinitialised using <D HAL RESET>).
IODevice::addDevice(this);

// Moved after addDevice() to ensure I2CManager.begin() has been called fisrt
_displayDriver->clearNative();

// Also add this display to list of display handlers
DisplayInterface::addDisplay(displayNo);

Expand Down
3 changes: 2 additions & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

#include "StringFormatter.h"

#define VERSION "5.2.47"
#define VERSION "5.2.48"
// 5.2.48 - Bugfix: HALDisplay was generating I2C traffic prior to I2C being initialised
// 5.2.47 - EXRAIL additions:
// STEALTH_GLOBAL
// BLINK
Expand Down

0 comments on commit 91e60b3

Please sign in to comment.