version 5.1

This commit is contained in:
zhangsheng 2024-11-28 09:58:35 +08:00
parent 7e526721a3
commit 38b26eb7f0
2 changed files with 6 additions and 6 deletions

View File

@ -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++;

View File

@ -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 = "";