Conversation
updated main.cpp
| objects = { | ||
|
|
||
| /* Begin PBXBuildFile section */ | ||
| E1B489D01CC87D9300643A24 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1B489CF1CC87D9300643A24 /* main.cpp */; }; |
# Conflicts: # workspace.xcworkspace/contents.xcworkspacedata
Codes are located at this [spreadsheet](https://docs.google.com/spreadsheets/d/1zIhQ-8UmOYflNnDYCz lLkUQ36gXbFe5Jb5eG3tSFJYs/edit?usp=sharing)
…ick_assertion-handler # Conflicts: # workspace.xcworkspace/contents.xcworkspacedata
| Micromouse::Memory::write( Micromouse::ERROR_MEMORY, intNextIndex); | ||
|
|
||
| } | ||
|
|
There was a problem hiding this comment.
can you add a function here that dumps all the errors in memory to the serial port using log()
There was a problem hiding this comment.
Hmm, you mean read all the codes and output them to the serial port?
There was a problem hiding this comment.
I can't tell if i did it right :P
There was a problem hiding this comment.
Not quite, look at logger.h for proper use
There was a problem hiding this comment.
how about now???
plus i can't tell why i can't call to this inline method anywhere in the project :P
|
Looks good, just need a way to view the errors |
| @@ -29,7 +30,7 @@ inline static void logError( int code ) { | |||
| inline static void printErrorCodes() { | |||
There was a problem hiding this comment.
hmmm, beats the hell out of me, i thought i had to, does it need to be static? i would say no huh
There was a problem hiding this comment.
no, it can just be a regular global function
|
Needs to be tested on the mouse |
closes #83
Substitute
assert(e)withassertion( condition, integer code ). Definitions of code values is saved in AssertionHandler-Dictionary.csvChanges
( + ) AssertionHandler.h