diff --git a/project/Core/Src/tftp.c b/project/Core/Src/tftp.c index e219c54..ddbfc5d 100644 --- a/project/Core/Src/tftp.c +++ b/project/Core/Src/tftp.c @@ -24,10 +24,10 @@ int tftp_write(void* handle, struct pbuf* p) { } struct tftp_context tftpContext_s = { - tftp_open, - tftp_close, - tftp_read, - tftp_write + .open = tftp_open, + .close = tftp_close, + .read = tftp_read, + .write = tftp_write }; void tftp_server_init(void) {