Skip to content
Browse files

minor changes to get it building

  • Loading branch information...
1 parent ba01dfc commit 3b93bc573788ae89454ac451d30299426bcc6f77 @tedbrandston tedbrandston committed
View
2 firmware/src/Motherboard/DebugPacketProcessor.cc
@@ -144,7 +144,7 @@ bool processDebugPacket(const InPacket& from_host, OutPacket& to_host) {
} else if(command == CommandCode::DEBUG_GET_DEBUG_BUFFER ) {
to_host.append8(RC_OK);
uint8_t value = 0;
- while(Motherboard::getBoard().getBufferData(value, 0))
+ while(Motherboard::getBoard().getBufferData(&value, 0))
{
to_host.append8(value);
}
View
3 firmware/src/Motherboard/boards/mb24/Motherboard.cc
@@ -21,6 +21,7 @@
#include <util/atomic.h>
#include "Motherboard.hh"
#include "Configuration.hh"
+#include "CircularBuffer.hh"
#include "Steppers.hh"
#include "Command.hh"
#include "Interface.hh"
@@ -228,7 +229,7 @@ bool Motherboard::enqueueDebugData(uint8_t data)
return ! debug_buffer.hasOverflow();
}
-bool Motherboard::getBufferData(uint8_t& data, uint8_t offset)
+bool Motherboard::getBufferData(uint8_t* data, uint8_t offset)
{
data[offset] = debug_buffer.pop();
return ! debug_buffer.hasUnderflow();
View
2 firmware/src/Motherboard/boards/mb24/Motherboard.hh
@@ -98,7 +98,7 @@ public:
/// gets one uint8_t of data from the buffer
/// and stores it in the given pointer offset by 'offset'
/// returns false on underflow
- bool getBufferData(uint8_t& data, uint8_t offset);
+ bool getBufferData(uint8_t* data, uint8_t offset);
/// Perform the timer interrupt routine.
void doInterrupt();

0 comments on commit 3b93bc5

Please sign in to comment.
Something went wrong with that request. Please try again.