switch to signed values for items
This commit is contained in:
@ -5,11 +5,11 @@
|
||||
#include "items/train.h"
|
||||
#include "items/turnout.h"
|
||||
|
||||
void Microcontroller::trainSetSpeed(uint8_t id, uint8_t speed)
|
||||
void Microcontroller::trainSetSpeed(uint8_t id, int8_t speed)
|
||||
{
|
||||
qDebug()<<__func__;
|
||||
std::stringstream ss;
|
||||
ss<<"train "<<(unsigned)id<<" speed "<<(unsigned)speed<<'\n';
|
||||
ss<<"train "<<(unsigned)id<<" speed "<<(int)speed<<'\n';
|
||||
write(ss.str().c_str());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user