Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: src/boards.cpp
- Revision:
- 20:5de24e4ae1c5
- Parent:
- 17:454afe56eedb
- Child:
- 21:fe0ea1860c9f
--- a/src/boards.cpp Fri Dec 14 00:32:33 2018 +0000
+++ b/src/boards.cpp Tue Jan 08 22:05:53 2019 +0000
@@ -60,7 +60,9 @@
*******************************************************************************/
unsigned int setBoardEnables(unsigned int tCode)
{
- wr_out = tCode;
+ if(!all_on){
+ wr_out = ~tCode;
+ }
return tCode;
}
@@ -69,7 +71,9 @@
*******************************************************************************/
unsigned int setBoardWeights(unsigned int bCode)
{
- en_out = bCode;
+ if(!all_on){
+ en_out = bCode;
+ }
toggleLatchSignal();
return bCode;
}