From 602b48253870caf8523598097fd55150aa0e8080 Mon Sep 17 00:00:00 2001 From: CryHam Date: Tue, 1 Mar 2016 21:00:23 +0100 Subject: [PATCH] Updated CK3 with Scan_currentChange (copy from MD1). --- Scan/CK3/scan_loop.c | 9 +++++++++ Scan/CK3/scan_loop.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/Scan/CK3/scan_loop.c b/Scan/CK3/scan_loop.c index 22d43c2..b4c8c99 100644 --- a/Scan/CK3/scan_loop.c +++ b/Scan/CK3/scan_loop.c @@ -175,6 +175,15 @@ void CustomAction_blockKey_capability( uint8_t state, uint8_t stateType, uint8_t } +// Signal from the Output Module that the available current has changed +// current - mA +void Scan_currentChange( unsigned int current ) +{ + // Indicate to all submodules current change + Matrix_currentChange( current ); +} + + // ----- CLI Command Functions ----- diff --git a/Scan/CK3/scan_loop.h b/Scan/CK3/scan_loop.h index 0c89838..3c543ea 100644 --- a/Scan/CK3/scan_loop.h +++ b/Scan/CK3/scan_loop.h @@ -38,6 +38,8 @@ uint8_t Scan_loop( void ); void Scan_finishedWithMacro( uint8_t sentKeys ); // Called by Macro Module void Scan_finishedWithOutput( uint8_t sentKeys ); // Called by Output Module +void Scan_currentChange( unsigned int current ); // Called by Output Module + // ----- Capabilities ----- -- 2.39.2