Skip to content

Commit 325619a

Browse files
authored
makeword: sync header and implementation (#8097)
makeword: sync header and implementation
1 parent e5489cf commit 325619a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: cores/esp8266/WMath.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
$Id$
2424
*/
2525

26+
#include "Arduino.h"
27+
2628
extern "C" {
2729
#include <stdlib.h>
2830
}
@@ -77,10 +79,10 @@ long map(long x, long in_min, long in_max, long out_min, long out_max) {
7779
return (delta * dividend + (divisor / 2)) / divisor + out_min;
7880
}
7981

80-
unsigned int makeWord(unsigned int w) {
82+
uint16_t makeWord(uint16_t w) {
8183
return w;
8284
}
8385

84-
unsigned int makeWord(unsigned char h, unsigned char l) {
86+
uint16_t makeWord(byte h, byte l) {
8587
return (h << 8) | l;
8688
}

0 commit comments

Comments
 (0)