Skip to content

Commit

Permalink
Fix codacy advisories
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Feb 7, 2023
1 parent 4c0a791 commit ecea01b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Sming/Arch/Esp32/Components/driver/hw_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ class TimerConfig
timer_group_t group;
timer_idx_t index;
timg_dev_t* dev;
intr_handle_t isr_handle;
hw_timer_callback_t callback;
void* arg;
bool autoload;
intr_handle_t isr_handle{};
hw_timer_callback_t callback{nullptr};
void* arg{nullptr};
bool autoload{false};
};

TimerConfig timer(HW_TIMER1_GROUP, HW_TIMER1_INDEX);
Expand Down
2 changes: 1 addition & 1 deletion Sming/Arch/Esp32/Tools/idf_tools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python

import os, sys, argparse, json
import os, argparse, json

def get_tool_info(soc):
path = os.path.expandvars('${IDF_PATH}/tools/tools.json')
Expand Down
6 changes: 3 additions & 3 deletions Tools/boardtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ def generate_pinmenu(args):
f' bool "{per.name}"',
f' default y',
]
help = per.help()
if help:
help_items = per.help()
if help_items:
menu += [' help']
menu += [f' {s}' for s in help]
menu += [f' {s}' for s in help_items]
if per.swap:
menu += [
f' config PERIPH_{per.name}_SWAP_ENABLE',
Expand Down

0 comments on commit ecea01b

Please sign in to comment.