Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,19 @@ check-for-pr: format

# 2nd dollar sign in grep command is to pass along a single dollar sign to egrep itself
format:
run-clang-format.py $(shell git diff --diff-filter=AM --name-only master | egrep '\.[ch]$$')
@if [ 'x${VERBOSE}' = x ]; then \
echo " PY run-clang-format"; \
else \
echo " run-clang-format.py $(shell git diff --diff-filter=AM --name-only master | egrep '\.[ch]$$')"; \
fi
@run-clang-format.py $(shell git diff --diff-filter=AM --name-only master | egrep '\.[ch]$$')

format-apply:
run-clang-format.py -i $(shell git diff --diff-filter=AM --name-only master | egrep '\.[ch]$$')
@if [ 'x${VERBOSE}' = x ]; then \
echo " PY run-clang-format -i"; \
else \
echo " run-clang-format.py -i $(shell git diff --diff-filter=AM --name-only master | egrep '\.[ch]$$')"; \
fi
@run-clang-format.py -i $(shell git diff --diff-filter=AM --name-only master | egrep '\.[ch]$$')

.PHONY: all clean $(DIRS) $(DIRSCLEAN) check-and-reinit-submodules
28 changes: 27 additions & 1 deletion projects/cm_mcu/CommandLineTask.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,33 @@ static struct command_t commands[] = {
"Show FF 3v3 mon\r\n",
0,
},
#endif // REV2
#endif // REV2 || REV3
#if defined(REV2) || defined(REV3)
{
"ff_tx_fault",
ff_tx_fault_alarm,
"Show FF TX fault alarms\r\n",
0,
},
{
"ff_rx_pwr_alarm",
ff_rx_power_alarm,
"Show FF RX power alarms\r\n",
0,
},
{
"ff_temp_alarm",
ff_temperature_alarm,
"Show FF temperature alarms\r\n",
0,
},
{
"ff_vcc_alarm",
ff_vcc_alarm,
"Show FF VCC alarms\r\n",
0,
},
#endif // REV2 || REV3
{
"ff_temp",
ff_temp,
Expand Down
Loading
Loading