diff --git a/targets/targets.json b/targets/targets.json index ced5c96269..c5545bd233 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -2915,7 +2915,7 @@ "progen_target": "rtl8195a", "device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SPI", "TRNG", "EMAC"], "default_build": "standard", - "features": ["IPV4", "LWIP"], + "features": ["LWIP"], "post_binary_hook": { "function": "RTL8195ACode.binary_hook", "toolchains": ["ARM_STD", "GCC_ARM", "IAR"] diff --git a/tools/REALTEK_RTL8195AM.py b/tools/REALTEK_RTL8195AM.py index 15eec962ae..c4b3adddde 100644 --- a/tools/REALTEK_RTL8195AM.py +++ b/tools/REALTEK_RTL8195AM.py @@ -33,9 +33,9 @@ def write_fixed_width_string(value, width, output): def write_fixed_width_value(value, width, output): # convert to string - line = format(value, '0%dx' %(width)) + line = format(value, '0%dx' % (width)) if len(line) > width: - print "[ERROR] value 0x%s cannot fit width %d" %(line, width) + print "[ERROR] value 0x%s cannot fit width %d" % (line, width) sys.exit(-1) # cut string to list & reverse line = [line[i:i+2] for i in range(0, len(line), 2)]