WeActStudio / MiniSTM32H7xx

STM32H750VBT6/STM32H743VIT6 Core Board With 0.96'' TFT,TF Card,8MB QSPI FLASH,8MB SPI FLASH,DVP Port
GNU General Public License v3.0
288 stars 100 forks source link

fix 1.8inch LCD can not display in gcc toolchain #13

Closed Liuyufanlyf closed 3 years ago

Liuyufanlyf commented 3 years ago

原本的程序 result /= -result;, 当 result = 0 时在 GCC 编译的程序会得到 -1 的结果,导致程序错误 While result equals 0, The code result /= -result; compiled by GCC return -1, lead to display error.

WeActStudio commented 3 years ago

谢谢~