Skip to content

Commit bc30251

Browse files
authored
Clean up use of "byte" as a type. uint8_t or (C++17) std::byte are better. (#8090)
1 parent 8a42163 commit bc30251

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: cores/esp8266/core_esp8266_main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static uint32_t s_cycles_at_yield_start;
6969
*/
7070
#define ETS_INTR_LOCK_NEST_MAX 7
7171
static uint16_t ets_intr_lock_stack[ETS_INTR_LOCK_NEST_MAX];
72-
static byte ets_intr_lock_stack_ptr=0;
72+
static uint8_t ets_intr_lock_stack_ptr=0;
7373

7474

7575
extern "C" {

Diff for: libraries/ESP8266WiFiMesh/src/TypeConversionFunctions.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ using namespace experimental::TypeConversion;
3333

3434
namespace MeshTypeConversionFunctions
3535
{
36-
String uint64ToString(uint64_t number, const byte base)
36+
String uint64ToString(uint64_t number, const uint8_t base)
3737
{
3838
assert(2 <= base && base <= 36);
3939

@@ -59,7 +59,7 @@ namespace MeshTypeConversionFunctions
5959
return result;
6060
}
6161

62-
uint64_t stringToUint64(const String &string, const byte base)
62+
uint64_t stringToUint64(const String &string, const uint8_t base)
6363
{
6464
assert(2 <= base && base <= 36);
6565

0 commit comments

Comments
 (0)