Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate from astyle to clang-format, add tests/ #8455

Closed
wants to merge 15 commits into from
Closed
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ jobs:
TRAVIS_TAG: ${{ github.ref }}
run: |
sudo apt update
sudo apt install astyle
sudo apt install clang-format-12
bash ./tests/ci/style_check.sh


Expand Down
12 changes: 4 additions & 8 deletions cores/esp8266/LwipDhcpServer-NonOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// these functions must exists as-is with "C" interface,
// nonos-sdk calls them at boot time and later

#include <lwip/init.h> // LWIP_VERSION
#include <lwip/init.h> // LWIP_VERSION

#include <lwip/netif.h>
#include "LwipDhcpServer.h"
Expand All @@ -35,8 +35,7 @@ DhcpServer dhcpSoftAP(&netif_git[SOFTAP_IF]);

extern "C"
{

void dhcps_start(struct ip_info *info, netif* apnetif)
void dhcps_start(struct ip_info* info, netif* apnetif)
{
// apnetif is esp interface, replaced by lwip2's
// netif_git[SOFTAP_IF] interface in constructor
Expand All @@ -56,9 +55,6 @@ extern "C"
#endif
}

void dhcps_stop()
{
dhcpSoftAP.end();
}
void dhcps_stop() { dhcpSoftAP.end(); }

} // extern "C"
} // extern "C"
Loading