X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Scan%2FKType%2Fscan_loop.c;fp=Scan%2FKType%2Fscan_loop.c;h=4e527066df6d204a9d5945b9a8407220b9d3fe32;hb=a848a6bc79285a2e5b3705f126c36e5c5037d5ef;hp=799985345825ec5b614755cbff9476e4641f5a9f;hpb=88670ac72f51e5f1f68b72ca300bdb0c999a37f7;p=kiibohd-controller.git diff --git a/Scan/KType/scan_loop.c b/Scan/KType/scan_loop.c index 7999853..4e52706 100644 --- a/Scan/KType/scan_loop.c +++ b/Scan/KType/scan_loop.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2014-2015 by Jacob Alexander +/* Copyright (C) 2014-2016 by Jacob Alexander * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -97,3 +97,14 @@ inline void Scan_finishedWithOutput( uint8_t sentKeys ) Scan_scanCount = 0; } + +// 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 + Connect_currentChange( current ); + Matrix_currentChange( current ); + LED_currentChange( current ); +} +