]> git.donarmstrong.com Git - kiibohd-controller.git/commitdiff
Updated CK3 with Scan_currentChange (copy from MD1).
authorCryHam <cryham@gmail.com>
Tue, 1 Mar 2016 20:00:23 +0000 (21:00 +0100)
committerCryHam <cryham@gmail.com>
Tue, 1 Mar 2016 20:00:23 +0000 (21:00 +0100)
Scan/CK3/scan_loop.c
Scan/CK3/scan_loop.h

index 22d43c2a26987586abe48c2f6c1d73cb40dd6c21..b4c8c99755ef4310749e786f29c166976c1988ac 100644 (file)
@@ -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 -----
 
index 0c89838dee5bdda892923636108a2993918a2bec..3c543eadddd8a13c0da071e9b67eff4b265fdaec 100644 (file)
@@ -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 -----