Skip to content

Commit

Permalink
makeword: sync header and implementation (#8097)
Browse files Browse the repository at this point in the history
makeword: sync header and implementation
  • Loading branch information
d-a-v committed Jun 2, 2021
1 parent e5489cf commit 325619a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cores/esp8266/WMath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
$Id$
*/

#include "Arduino.h"

extern "C" {
#include <stdlib.h>
}
Expand Down Expand Up @@ -77,10 +79,10 @@ long map(long x, long in_min, long in_max, long out_min, long out_max) {
return (delta * dividend + (divisor / 2)) / divisor + out_min;
}

unsigned int makeWord(unsigned int w) {
uint16_t makeWord(uint16_t w) {
return w;
}

unsigned int makeWord(unsigned char h, unsigned char l) {
uint16_t makeWord(byte h, byte l) {
return (h << 8) | l;
}

0 comments on commit 325619a

Please sign in to comment.