1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- import copy
1615import platform
1716
18- from platformio .managers . platform import PlatformBase
17+ from platformio .public import PlatformBase
1918
2019
2120class RaspberrypiPlatform (PlatformBase ):
@@ -39,16 +38,16 @@ def configure_default_packages(self, variables, targets):
3938 if not any (jlink_conds ) and jlink_pkgname in self .packages :
4039 del self .packages [jlink_pkgname ]
4140
42- return PlatformBase .configure_default_packages (self , variables , targets )
41+ return super () .configure_default_packages (variables , targets )
4342
4443 def get_boards (self , id_ = None ):
45- result = PlatformBase .get_boards (self , id_ )
44+ result = super () .get_boards (id_ )
4645 if not result :
4746 return result
4847 if id_ :
4948 return self ._add_default_debug_tools (result )
5049 else :
51- for key , value in result . items () :
50+ for key in result :
5251 result [key ] = self ._add_default_debug_tools (result [key ])
5352 return result
5453
@@ -102,7 +101,6 @@ def _add_default_debug_tools(self, board):
102101
103102 def configure_debug_session (self , debug_config ):
104103 adapter_speed = debug_config .speed or "5000"
105-
106104 server_options = debug_config .server or {}
107105 server_arguments = server_options .get ("arguments" , [])
108106 if "interface/cmsis-dap.cfg" in server_arguments :
0 commit comments