Samraksh / eMote

eMote OS -- Multiple Ports (using .NET MF v4.3)
0 stars 0 forks source link

Native messages #256

Open ChrisAtSamraksh opened 9 years ago

ChrisAtSamraksh commented 9 years ago

There are numerous messages throughout our code that need to be standardized.

As an example the CSMA code has this: "CSMA Send Error: Packet is too big"

This message goes out the COM port to the user, however if the user code is also using that port, it could cause unneeded problems.

We could instead use: CLR_Debug::Printf() to print out all error messages. If the user chooses they could load up our debug build and have these messages aid in debugging the problem, or as a bigger task, we let the user enable a debug mode that allows these messages to be printed out the COM port if needed.

AnanthAtSamraksh commented 9 years ago

How about using log levels to print such messages instead of using a debug build? The user could enable a log level from C#. It could be added to the DotNow dll (Management class) where the user gets the choice to enable clock calibration.