Skip to content

Commit

Permalink
Change transaction & CS ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Mar 16, 2019
1 parent efe87d8 commit b8fd9b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Adafruit_SPITFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/*!
Expand All @@ -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();
}


Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit b8fd9b4

Please sign in to comment.