diff --git a/ch340g.cpp b/ch340g.cpp index dd2629e..f0bbbc0 100644 --- a/ch340g.cpp +++ b/ch340g.cpp @@ -2,7 +2,6 @@ #include #include -namespace driver { int CH340G::init() { int err; @@ -173,4 +172,3 @@ int CH340G::bulk_read(unsigned char endpoint, unsigned char* data, int length, u return transferred; } -} \ No newline at end of file diff --git a/ch340g.h b/ch340g.h index 619cfa5..70e036d 100644 --- a/ch340g.h +++ b/ch340g.h @@ -14,7 +14,6 @@ uint8_t rts = 0; // 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter // VENDOR: 6790; PRODUCT: 29987 -namespace driver { class CH340G { private: libusb_context *ctx = NULL; @@ -32,4 +31,3 @@ class CH340G { int bulk_read(unsigned char endpoint, unsigned char* data, int length, unsigned int timeout); }; -} \ No newline at end of file