TFTP
Format
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
#ifndef PROJECT_TFTP_H
|
||||
#define PROJECT_TFTP_H
|
||||
#define LOGGER_LEVEL_ALL
|
||||
#include "log.h"
|
||||
#include <tftp_server.h>
|
||||
#include "log.h"
|
||||
|
||||
extern struct tftp_context tftpContext_s;
|
||||
|
||||
|
||||
@@ -23,12 +23,7 @@ int tftp_write(void* handle, struct pbuf* p) {
|
||||
LOG_INFO(TAG, "Writing file");
|
||||
}
|
||||
|
||||
struct tftp_context tftpContext_s = {
|
||||
.open = tftp_open,
|
||||
.close = tftp_close,
|
||||
.read = tftp_read,
|
||||
.write = tftp_write
|
||||
};
|
||||
struct tftp_context tftpContext_s = {.open = tftp_open, .close = tftp_close, .read = tftp_read, .write = tftp_write};
|
||||
|
||||
void tftp_server_init(void) {
|
||||
LOG_INFO(TAG, "Initializing tftp server");
|
||||
|
||||
Reference in New Issue
Block a user