Revision 347
fixed dumb wl library bug
colonet_wireless.cpp | ||
---|---|---|
50 | 50 |
|
51 | 51 |
|
52 | 52 |
/**************************** Public functions *******************************/ |
53 |
void colonet_wl_init(char* wl_port_, MsgHandlerFunction message_handler_, |
|
54 |
char* log_filename_) {
|
|
55 |
if (log_filename) {
|
|
53 |
void colonet_wl_init(char* wl_port_, MsgHandlerFunction message_handler_, char* log_filename_) {
|
|
54 |
if (log_filename_ != NULL) {
|
|
55 |
printf("Log filename_=%p: %s\n", log_filename_, log_filename_);
|
|
56 | 56 |
logging_enabled = true; |
57 |
sprintf(log_filename, log_filename_);
|
|
57 |
strcpy(log_filename, log_filename_);
|
|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
strncpy(wl_port, wl_port_, 40); |
Also available in: Unified diff