Change transaction & CS ordering

This commit is contained in:
Phillip Burgess 2019-03-16 14:57:09 -07:00
parent efe87d81ef
commit b8fd9b4366
2 changed files with 3 additions and 3 deletions

View File

@ -821,8 +821,8 @@ void Adafruit_SPITFT::initSPI(uint32_t freq) {
for all display types; not an SPI-specific function.
*/
void Adafruit_SPITFT::startWrite(void) {
if(_cs >= 0) SPI_CS_LOW();
SPI_BEGIN_TRANSACTION();
if(_cs >= 0) SPI_CS_LOW();
}
/*!
@ -832,8 +832,8 @@ void Adafruit_SPITFT::startWrite(void) {
for all display types; not an SPI-specific function.
*/
void Adafruit_SPITFT::endWrite(void) {
SPI_END_TRANSACTION();
if(_cs >= 0) SPI_CS_HIGH();
SPI_END_TRANSACTION();
}

View File

@ -1,5 +1,5 @@
name=Adafruit GFX Library
version=1.4.3
version=1.4.4
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from.