Closed Hilbert70 closed 1 year ago
Could be fixes by changing the function into:
void BLELocomotive::SetEmergencyBrake(const bool enabled)
{
// Handle e-brake on all channels of our hubs.
for (BLEHub *hub : Hubs) {
if (hub->IsConnected()) hub->EmergencyBrake(enabled);
}
}
But after a reconnect one should check if the other hubs have the ebreak enabled
This is fixed with #20.
@Hilbert70 #20 was resolved and merged into develop just before X-mas. Would you mind checking if this is resolved now?
Successfully tested.
Test:
Works as expected.
Closing issue.
Do not check for AllHubsCOnnected, we should change it to: ForAllHubsConnected....