Skip to content

Commit

Permalink
fix compile error ( #423 thanks @Dev-91 !)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovyan03 committed Jul 12, 2023
1 parent 6942d48 commit 6070fd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lgfx/v1/platforms/esp32/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,11 @@ namespace lgfx
cmd_val |= (1 << 10); // ACK_VALUE (set NACK)
}
#if defined (CONFIG_IDF_TARGET_ESP32S3)
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
(&dev->comd[0])[index].val = cmd_val;
#else
(&dev->comd0)[index].val = cmd_val;
#endif
#else
dev->command[index].val = cmd_val;
#endif
Expand Down

0 comments on commit 6070fd1

Please sign in to comment.