mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-07-28 18:03:45 +02:00
Change Stream refernces to pointers
I misunderstood that references can never be changed.
This commit is contained in:
@@ -73,7 +73,7 @@ bool Turnout::remove(int n){
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void Turnout::show(Print & stream, int n){
|
||||
void Turnout::show(Print * stream, int n){
|
||||
for(Turnout *tt=firstTurnout;tt!=NULL;tt=tt->nextTurnout){
|
||||
if (tt->data.id==n) {
|
||||
StringFormatter::send(stream,F("<H %d %d>"), tt->data.id, tt->data.tStatus & STATUS_ACTIVE);
|
||||
@@ -82,7 +82,7 @@ void Turnout::show(Print & stream, int n){
|
||||
}
|
||||
}
|
||||
|
||||
bool Turnout::showAll(Print & stream){
|
||||
bool Turnout::showAll(Print * stream){
|
||||
bool gotOne=false;
|
||||
for(Turnout * tt=firstTurnout;tt!=NULL;tt=tt->nextTurnout){
|
||||
StringFormatter::send(stream,F("<H %d %d %d %d>"), tt->data.id, tt->data.address, tt->data.subAddress, (tt->data.tStatus & STATUS_ACTIVE)!=0);
|
||||
|
Reference in New Issue
Block a user