]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Scan/MDErgo1/scan_loop.c
Adding dynamic USB power support
[kiibohd-controller.git] / Scan / MDErgo1 / scan_loop.c
index d5e97e54b4e37051ae7e560c9bcf3635290a1410..e80119b6d8d00546f2742c0f62d1ac1bea0d58e0 100644 (file)
@@ -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
@@ -102,3 +102,15 @@ 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 );
+       LCD_currentChange( current );
+}
+