diff --git a/platformio/builder/tools/piomisc.py b/platformio/builder/tools/piomisc.py index 168c5c25..cb12d421 100644 --- a/platformio/builder/tools/piomisc.py +++ b/platformio/builder/tools/piomisc.py @@ -53,7 +53,8 @@ class InoToCPPConverter(object): prototypes.append((file_path, match.start(), match.group(1))) return prototypes - def append_prototypes(self, contents, prototypes): + @staticmethod + def append_prototypes(contents, prototypes): result = [] if not prototypes: return result