Skip to content

Commit

Permalink
format checks
Browse files Browse the repository at this point in the history
  • Loading branch information
pwittich committed May 30, 2024
1 parent e97c1b7 commit 0ce7788
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ check-for-pr: format

# 2nd dollar sign in grep is to pass along a single dollar sign to make
format:
run-clang-format.py $(shell git diff --diff-filter=AM --name-only master | egrep '.[ch]$$')
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]$$')
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
1 change: 1 addition & 0 deletions build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ make COMPILER=clang clean
make -j REV1=1 COMPILER=clang > /dev/null
make COMPILER=clang clean
make -j REV2=1 COMPILER=clang > /dev/null
make format > /dev/null
echo "all build succeeded."

2 changes: 0 additions & 2 deletions projects/cm_mcu/LocalTasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ struct dev_moni2c_addr_t ffl4_f2_moni2c_addrs[NFIREFLIES_DAQ_F2] = {
// #error "Define either Rev1 or Rev2"
#endif


#ifdef REV1
struct dev_moni2c_addr_t ffl12_f2_moni2c_addrs[NFIREFLIES_IT_F2] = {
{"V11 12 Tx GTY", FF_I2CMUX_1_ADDR, 6, 0x50}, //
Expand All @@ -234,7 +233,6 @@ struct dev_moni2c_addr_t ffl12_f2_moni2c_addrs[NFIREFLIES_IT_F2] = {
#error "Define either Rev1 or Rev2"
#endif


#ifdef REV2
// Clock arguments for monitoring task

Expand Down

0 comments on commit 0ce7788

Please sign in to comment.