fix 5g bugs
This commit is contained in:
parent
eb1c97b60e
commit
7c3b49662b
@ -17,7 +17,7 @@ enum enumZigBeeTransmitStatus {
|
||||
};
|
||||
|
||||
|
||||
//#define NR5G_MODULE
|
||||
#define NR5G_MODULE
|
||||
//#define Q4G_MODULE
|
||||
//#define WIFI_MODULE
|
||||
//#define NR5G_MEIGE
|
||||
|
||||
2
main.cpp
2
main.cpp
@ -83,7 +83,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
|
||||
#ifdef NR5G_MODULE
|
||||
print_info("NR5G_MODULE \n");
|
||||
zlog_info(zbt,"NR5G_MODULE \n");
|
||||
// 5G
|
||||
boost::thread startCSQ(GetCSQ);
|
||||
startCSQ.detach();
|
||||
|
||||
@ -17,7 +17,11 @@
|
||||
|
||||
extern zlog_category_t *zct;
|
||||
extern zlog_category_t *zbt;
|
||||
#ifdef NR5G_MODULE
|
||||
#include "wifi_5g/dial.h"
|
||||
|
||||
int fd = -1;
|
||||
#endif
|
||||
void CheckThread() {
|
||||
zlog_info(zbt, "ENTER CHECK THREAD ");
|
||||
|
||||
@ -34,6 +38,7 @@ void CheckThread() {
|
||||
int mqttresend = 0;
|
||||
int checkNet0 = 0;
|
||||
int wifi_reconnect_count = 0;
|
||||
int connectCount = 0;
|
||||
while (GlobalConfig::QuitFlag_G) {
|
||||
GlobalConfig::threadStatus = 1;
|
||||
sleep(1);
|
||||
@ -83,6 +88,7 @@ void CheckThread() {
|
||||
}
|
||||
#endif
|
||||
#ifdef NR5G_MODULE
|
||||
Dial dial;
|
||||
dial.closePort();
|
||||
gpio_set(GlobalConfig::GPIO_G.commPower, 0);
|
||||
zlog_warn(zct, "commPower start");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user