simulator does not compile for pchmura4 on gcc13 #5644

This commit is contained in:
rusefillc 2023-10-26 10:45:01 -04:00 committed by rusefillc
parent dbe8b6294d
commit b7b477bc77
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ static scaled_channel<uint32_t, TIME_PRECISION> packedTime;
// The list of logged fields lives in a separate file so it can eventually be tool-generated
#include "log_fields_generated.h"
static constexpr uint16_t computeFieldsRecordLength() {
static const uint16_t computeFieldsRecordLength() {
uint16_t recLength = 0;
for (size_t i = 0; i < efi::size(fields); i++) {
recLength += fields[i].getSize();

View File

@ -81,7 +81,7 @@ public class LiveDataProcessor {
}
public static void wrapContent(LazyFile output, String content) {
output.write("static constexpr LogField fields[] = {\r\n" +
output.write("static const LogField fields[] = {\r\n" +
"{packedTime, GAUGE_NAME_TIME, \"sec\", 0},\n");
output.write(content);
output.write("};\r\n");