🔨 Newer PlatformIO support
This commit is contained in:
@@ -144,7 +144,7 @@ class DWIN_ICO_File():
|
||||
# process each file:
|
||||
try:
|
||||
index = int(dirEntry.name[0:3])
|
||||
if (index < 0) or (index > 255):
|
||||
if not (0 <= index <= 255):
|
||||
print('...Ignoring invalid index on', dirEntry.path)
|
||||
continue
|
||||
#dirEntry.path is iconDir/name
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#----------------------------------------------------------------
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import argparse
|
||||
import DWIN_ICO
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#----------------------------------------------------------------
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import argparse
|
||||
import DWIN_ICO
|
||||
|
||||
Reference in New Issue
Block a user