1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Clean up use of "byte" as a type. uint8_t or (C++17) std::byte are better. (#8090)

This commit is contained in:
Dirk O. Kaar 2021-07-26 21:20:45 +02:00 committed by GitHub
parent 8a42163a50
commit bc302511f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ static uint32_t s_cycles_at_yield_start;
*/ */
#define ETS_INTR_LOCK_NEST_MAX 7 #define ETS_INTR_LOCK_NEST_MAX 7
static uint16_t ets_intr_lock_stack[ETS_INTR_LOCK_NEST_MAX]; static uint16_t ets_intr_lock_stack[ETS_INTR_LOCK_NEST_MAX];
static byte ets_intr_lock_stack_ptr=0; static uint8_t ets_intr_lock_stack_ptr=0;
extern "C" { extern "C" {

View File

@ -33,7 +33,7 @@ using namespace experimental::TypeConversion;
namespace MeshTypeConversionFunctions namespace MeshTypeConversionFunctions
{ {
String uint64ToString(uint64_t number, const byte base) String uint64ToString(uint64_t number, const uint8_t base)
{ {
assert(2 <= base && base <= 36); assert(2 <= base && base <= 36);
@ -59,7 +59,7 @@ namespace MeshTypeConversionFunctions
return result; return result;
} }
uint64_t stringToUint64(const String &string, const byte base) uint64_t stringToUint64(const String &string, const uint8_t base)
{ {
assert(2 <= base && base <= 36); assert(2 <= base && base <= 36);