From c0c83689058910184335ea7892d9c8d266e9aa5c Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sun, 26 Feb 2017 19:37:26 +0200 Subject: [PATCH] Code cleanup --- platformio/commands/boards.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platformio/commands/boards.py b/platformio/commands/boards.py index 2da6cdf6..dfe4db54 100644 --- a/platformio/commands/boards.py +++ b/platformio/commands/boards.py @@ -66,8 +66,6 @@ def cli(query, installed, json_output): # pylint: disable=R0912 if query.lower() not in search_data.lower(): continue - flash_size = "%dkB" % (board['rom'] / 1024) - ram_size = board['ram'] if ram_size >= 1024: if ram_size % 1024: @@ -83,7 +81,7 @@ def cli(query, installed, json_output): # pylint: disable=R0912 board['id'], fg="cyan"), mcu=board['mcu'], frequency="%dMhz" % (board['fcpu'] / 1000000), - flash=flash_size, + flash="%dkB" % (board['rom'] / 1024), ram=ram_size, name=board['name']))