Removing additional use of 'float'

pull/85/head
Jesse Vincent 8 years ago
parent 7b2cc10d4a
commit b230c1f27d

@ -21,9 +21,9 @@ void MouseWrapper_::release_button(uint8_t button) {
}
void MouseWrapper_::warp_jump(long left, long top, long height, long width) {
long x_center = left + width/2;
long y_center = top + height/2;
void MouseWrapper_::warp_jump(uint16_t left, uint16_t top, uint16_t height, uint16_t width) {
uint16_t x_center = left + width/2;
uint16_t y_center = top + height/2;
AbsoluteMouse.moveTo(x_center,y_center);
}

@ -50,7 +50,7 @@ class MouseWrapper_ {
uint8_t acceleration (uint8_t cycles);
void begin_warping();
void end_warping();
void warp_jump(long left, long top, long height, long width);
void warp_jump(uint16_t left, uint16_t top, uint16_t height, uint16_t width);
};
extern MouseWrapper_ MouseWrapper;

@ -6,7 +6,7 @@ breath_compute (BreathState *state) {
// This code is adapted from FastLED lib8tion.h as of dd5d96c6b289cb6b4b891748a4aeef3ddceaf0e6
// Eventually, we should consider just using FastLED
uint8_t i = millis()/12;
uint8_t i = (uint16_t)millis()/12;
if( i & 0x80) {
i = 255 - i;

Loading…
Cancel
Save