Comments (6)
This demo takes some gross shortcuts with error handling, as is usually the case with demos. Please single step the application around this place to see what's happening:
from demos.
I added some print statement to see what is happening, and this is the output arond those lines:
Init register: /home/pi/temp/registry/uavcan.node.id
Making new register /home/pi/temp/registry/uavcan.node.id
-> Result of the operation: -1
Node ID in the register: 65535
Init register: /home/pi/temp/registry/uavcan.node.description
Making new register /home/pi/temp/registry/uavcan.node.description
-> Result of the operation: -1
Init register: /home/pi/temp/registry/udral.pnp.cookie
Making new register /home/pi/temp/registry/udral.pnp.cookie
-> Result of the operation: -1
Making new register /home/pi/temp/registry/reg.udral.service.pitot
-> Result of the operation: -1
Init register: /home/pi/temp/registry/uavcan.can.mtu
Making new register /home/pi/temp/registry/uavcan.can.mtu
-> Result of the operation: -1
Te Result of the operation
comes from mkdir(RegistryDirName, S_IRWXU | S_IRWXG | S_IRWXO);
SO I assume that the code is failing to create the file.
Do you have any suggestions on how to address this?
from demos.
Check the errno
from demos.
It is working now, or it seems to, I will ontinue checkign tomorrow.
The change that I made was to modify the mkdir command from:
mkdir(RegistryDirName, S_IRWXU | S_IRWXG | S_IRWXO);
mkdir(RegistryDirName,S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)
from demos.
Ah, that makes sense. Can you please submit a pull request?
from demos.
will do
from demos.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from demos.