Skip to content

Commit

Permalink
2.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Trusty77 committed Aug 22, 2024
1 parent 0060c67 commit ce29b66
Show file tree
Hide file tree
Showing 32 changed files with 199,222 additions and 14 deletions.
10 changes: 5 additions & 5 deletions CommandStation-EX-LaBox.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
#if __has_include ( "config.h")
#include "config.h"
#ifndef LABOX_MAIN_MOTOR_SHIELD
#error Your config.h must include a LABOX_MAIN_MOTOR_SHIELD and a LABOX_PROG_MOTOR_SHIELD definition. If you see this warning in spite not having a config.h, you have a buggy preprocessor and must copy config.example.h to config.h
#error Your config.h must include a LABOX_MAIN_MOTOR_SHIELD and a LABOX_PROG_MOTOR_SHIELD definition. If you see this warning in spite not having a config.h, you have a buggy preprocessor and must copy config.Labox.h to config.h
#endif
#else
#warning config.h not found. Using defaults from config.example.h
#include "config.example.h"
#warning config.h not found. Using defaults from config.Labox.h
#include "config.Labox.h"
#endif

/*
* © 2021 Neil McKechnie
* © 2020-2021 Chris Harlow, Harald Barth, David Cutting,
* Fred Decker, Gregor Baues, Anthony W - Dayton
* © 2023 Thierry Paris for Locoduino.
* © 2023-2024 Thierry Paris for Locoduino.
* All rights reserved.
*
* This file is part of CommandStation-EX-Labox
Expand Down Expand Up @@ -109,7 +109,7 @@ void setup()
if (mode == 'P') hmi::progMode = true;
if (mode == 'B') hmi::silentBootMode = true;

DIAG(F("Mode %s"), hmi::progMode?"Prog":"Main");
DIAG(F("Mode %s"), hmi::progMode ? "Prog" : "Main");

if (hmi::progMode) {
// Reset to Main mode for next reboot.
Expand Down
6 changes: 6 additions & 0 deletions DCC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@ bool DCC::setFn( int cab, int16_t functionNumber, bool on) {
updateGroupflags(speedTable[reg].groupFlags, functionNumber);
CommandDistributor::broadcastLoco(reg);
}
#ifdef USE_HMI
if (hmi::CurrentInterface != NULL) {
hmi::CurrentInterface->ChangeFunction(cab, functionNumber, on);
hmi::CurrentInterface->HmiInterfaceUpdateDrawing();
}
#endif
return true;
}

Expand Down
Binary file added PCB/DipTrace/LaBox..dip
Binary file not shown.
Binary file added PCB/DipTrace/LaBox.dch
Binary file not shown.
Loading

0 comments on commit ce29b66

Please sign in to comment.