Adds make lint and make lint-fix

This commit is contained in:
rbaron 2021-04-10 18:19:37 +02:00
parent 9057d67c0c
commit e54449bf84
3 changed files with 11 additions and 3 deletions

View file

@ -311,4 +311,12 @@ sdk_config:
.PHONY: flash_loop
flash_loop:
while [ 1 ]; do make flash && break; done
while [ 1 ]; do make flash && break; done
.PHONY: lint
lint:
find src -iname *.h -o -iname *.c | xargs clang-format -n -Werror
.PHONY: fix
lint-fix:
find src -iname *.h -o -iname *.c | xargs clang-format -i

View file

@ -0,0 +1 @@
BasedOnStyle: Google

View file

@ -13,7 +13,6 @@ void prst_adv_stop();
void prst_ble_update_adv_data(uint16_t batt_millivolts,
uint16_t temp_millicelcius, uint16_t humidity,
uint16_t soil_moisture,
uint8_t run_counter);
uint16_t soil_moisture, uint8_t run_counter);
#endif // _PRST_BLE_H_