mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2024-10-01 03:15:40 -04:00
Cleanup
This commit is contained in:
parent
a8af5314b7
commit
2cdf2951e6
5
Device.h
5
Device.h
@ -259,14 +259,12 @@ void device_validate_partitions() {
|
||||
// todo, add bootloader, partition table, or softdevice?
|
||||
calculate_region_hash(APPLICATION_START, USER_DATA_START, dev_firmware_hash);
|
||||
#endif
|
||||
#if VALIDATE_FIRMWARE
|
||||
for (uint8_t i = 0; i < DEV_HASH_LEN; i++) {
|
||||
if (dev_firmware_hash_target[i] != dev_firmware_hash[i]) {
|
||||
fw_signature_validated = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool device_firmware_ok() {
|
||||
@ -324,7 +322,8 @@ bool device_init() {
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
#else //if VALIDATE_FIRMWARE is false
|
||||
#else
|
||||
// Skip hash comparison and checking BT
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
@ -2562,7 +2562,7 @@ void sx128x::disableCrc()
|
||||
setPacketParams(_preambleLength, _implicitHeaderMode, _payloadLength, _crcMode);
|
||||
}
|
||||
|
||||
byte sx128x::random()
|
||||
uint8_t sx128x::random()
|
||||
{
|
||||
// todo: implement
|
||||
return 0x4; //chosen by fair die roll
|
||||
|
@ -1341,7 +1341,7 @@ bool eeprom_product_valid() {
|
||||
#if PLATFORM == PLATFORM_ESP32
|
||||
if (rval == PRODUCT_RNODE || rval == BOARD_RNODE_NG_20 || rval == BOARD_RNODE_NG_21 || rval == PRODUCT_HMBRW || rval == PRODUCT_TBEAM || rval == PRODUCT_T32_10 || rval == PRODUCT_T32_20 || rval == PRODUCT_T32_21 || rval == PRODUCT_H32_V2 || rval == PRODUCT_H32_V3) {
|
||||
#elif PLATFORM == PLATFORM_NRF52
|
||||
if (rval == PRODUCT_TECHO || rval == MODEL_16 || rval == MODEL_17 || rval == PRODUCT_RAK4631 || rval == PRODUCT_HMBRW || rval == PRODUCT_FREENODE) {
|
||||
if (rval == PRODUCT_TECHO || rval == PRODUCT_RAK4631 || rval == PRODUCT_HMBRW || rval == PRODUCT_FREENODE) {
|
||||
#else
|
||||
if (false) {
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user