aboutsummaryrefslogtreecommitdiff
path: root/bootloaders/diskloader/src/DiskLoader.cpp
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2011-09-16 11:18:39 -0400
committerZach Eveland <zeveland@blacklabel-development.com>2011-09-16 11:18:39 -0400
commitbc096344f5884c72c1bfd9c1de7f264094418d99 (patch)
tree490dcd6df5d744a05cbe5f01a6e5ce936f8b07ee /bootloaders/diskloader/src/DiskLoader.cpp
parent983cfc058ed33d8d5182ecaba78fb99ed49a4d71 (diff)
faster LED breathing animation in bootloader
Diffstat (limited to 'bootloaders/diskloader/src/DiskLoader.cpp')
-rw-r--r--bootloaders/diskloader/src/DiskLoader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootloaders/diskloader/src/DiskLoader.cpp b/bootloaders/diskloader/src/DiskLoader.cpp
index f854fd1..1771d02 100644
--- a/bootloaders/diskloader/src/DiskLoader.cpp
+++ b/bootloaders/diskloader/src/DiskLoader.cpp
@@ -220,10 +220,10 @@ int main()
u16 _pulse;
void LEDPulse()
{
- _pulse++;
- u8 p = _pulse >> 8;
- if (p > 127)
- p = 255-p;
+ _pulse += 4;
+ u8 p = _pulse >> 9;
+ if (p > 63)
+ p = 127-p;
p += p;
if (((u8)_pulse) > p)
LED0;