version 5.1
This commit is contained in:
parent
7e526721a3
commit
38b26eb7f0
10
main.cpp
10
main.cpp
@ -136,13 +136,13 @@ int main(int argc, char *argv[]) {
|
||||
zlog_error(zbt, "(this usually indicates a compiler bug - try recompiling\nwithout optimizations, and enable '-DLZO_DEBUG' for diagnostics)");
|
||||
}
|
||||
|
||||
//int fd = OpenWatchDog();
|
||||
int fd = OpenWatchDog();
|
||||
int count = 0;
|
||||
while (GlobalConfig::QuitFlag_G) {
|
||||
// gpio_set(GlobalConfig::GPIO_G.hardWatchDog, 1);
|
||||
// usleep(20000);
|
||||
// gpio_set(GlobalConfig::GPIO_G.hardWatchDog, 0);
|
||||
// WriteWatchDog(fd);
|
||||
gpio_set(GlobalConfig::GPIO_G.hardWatchDog, 1);
|
||||
usleep(20000);
|
||||
gpio_set(GlobalConfig::GPIO_G.hardWatchDog, 0);
|
||||
WriteWatchDog(fd);
|
||||
sleep(20);
|
||||
if (GlobalConfig::threadStatus == 0) {
|
||||
count++;
|
||||
|
||||
@ -14,7 +14,7 @@ int GlobalConfig::LinkStatus_G = 0;
|
||||
int GlobalConfig::LinkCount = 0;
|
||||
int GlobalConfig::net0Status = 1;
|
||||
|
||||
std::string GlobalConfig::Version = "5.0";
|
||||
std::string GlobalConfig::Version = "5.1";
|
||||
std::string GlobalConfig::MacAddr_G = "";
|
||||
std::string GlobalConfig::MacAddr_G2 = "";
|
||||
std::string GlobalConfig::IpAddr_G = "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user