Skip to content

Commit

Permalink
Merge pull request #31 from pratimugale/wip-1
Browse files Browse the repository at this point in the history
Solved bugs in prussd.py, pruss.cpp
  • Loading branch information
pratimugale committed Aug 18, 2019
2 parents 47e533f + 17c68d3 commit 8c29fe9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cpp-bindings/pruss.cpp
@@ -1,4 +1,5 @@
#include "pruss.h"
#include <iostream>

using namespace std;

Expand Down Expand Up @@ -33,7 +34,7 @@ string Socket::sendcmd(string command)

int nbytes;
string received;
char buf[1024], rec[1024]; //buffers to store command and reply
char buf[2048], rec[2048]; //buffers to store command and reply
nbytes = snprintf(buf, sizeof(buf), command.c_str()); //store command in buf
buf[nbytes] = '\n';
send(this->fd, buf, strlen(buf), 0); // send command over the socket connection
Expand Down
3 changes: 0 additions & 3 deletions prussd/prussd.py
Expand Up @@ -114,9 +114,6 @@ def load_firmware(number, cmd):
if not os.path.exists(cmd[1]):
return -errno.ENOENT

if not any(cmd[1].startswith(path) for path in paths.FIRMWARE_PATHS):
return -errno.EPERM

try:
fname = cmd[1].split("/")[-1]
fw_path = paths.FIRMWARE_PATH+"/"+fname
Expand Down

0 comments on commit 8c29fe9

Please sign in to comment.